我想将ITSwitch从obj-c移植到
swift.
https://github.com/iluuu1994/ITSwitch.git
在ITSwitch.m中
@property (readonly,strong) CALayer *rootLayer;
所以在快速写道:
var rootLayer:CALayer?
Use of module 'CALayer' as a type