CRAnimation/CRRefresh

Swift 4

Closed this issue · 3 comments

Declarations from extensions cannot be overridden yet

Have just encountered this. Will attempt a fix.

expose the base class to objc:

@objcMembers
open class CRRefreshComponent: UIView {
 ....
}

OT, but a Quick-n-dirty solution to the other Swift 4 compilation issues:

  • declare the UIColor extensions methods public. e.g.
public convenience init(rgba: String, defaultColor: UIColor = UIColor.clear) {
...
}