我使用 CalendarKit cocoapods
我想在日期视图和时间线视图之间留一个空间。
但我只找到了一种在下面的代码中改变 y 值的方法
override public func layoutSubviews() {
super.layoutSubviews()
dayHeaderView.frame = CGRect(origin: CGPoint(x: 0, y: layoutMargins.top),
size: CGSize(width: bounds.width, height: headerHeight))
let timelinePagerHeight = bounds.height - dayHeaderView.frame.maxY
timelinePagerView.frame = CGRect(origin: CGPoint(x: 0, y: dayHeaderView.frame.maxY),
size: CGSize(width: bounds.width, height: timelinePagerHeight))
}
它在cocoapods...
如何在我自己的 swift 文件中更改它?
还是有其他方法可以改变?
我的理想视图如下