Objective C
roarapps opened this issue · 2 comments
roarapps commented
Hello,
Have successfully added this control to an Obj C project but am unable to see the func set(progress: Int, animated: Bool) from my class.
Is this a limitation or is there workaround to get the control to animate?
Heisenbean commented
get same problem
MichaelDanielTom commented
There's probably a better way of doing this, but I made a swift extension with an @objc annotation, and a wrapper function:
import CHIPageControl
@objc extension CHIBasePageControl {
func animate(progress: NSInteger, animated: Bool) {
self.set(progress: progress, animated: animated)
}
}
You could also go into CHIBasePageControl.swift and add the @objc annotation to set(progress: Int, animated: Bool)