我正在尝试将以下库实现到我的项目中:
https://github.com/knutigro/COBezierTableView
public extension UIView { public struct BezierPoints { static var p1 = CGPoint.zero static var p2 = CGPoint.zero static var p3 = CGPoint.zero static var p4 = CGPoint.zero } }
在我的MainVC中,这配置如下:
UIView.BezierPoints.p1 = CGPoint(... UIView.BezierPoints.p2 = CGPoint(... UIView.BezierPoints.p3 = CGPoint(... UIView.BezierPoints.p4 = CGPoint(...
在Swift 2.3演示项目中没有错误.在Swift 3项目中,我收到错误:
“由于’内部’保护水平,p1无法进入.”
有人可以在这里解释一下这个问题,我猜Swift 3有一些新的幕后权限接管需要被覆盖.