Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objective C #38

Open
roarapps opened this issue Mar 2, 2018 · 2 comments
Open

Objective C #38

roarapps opened this issue Mar 2, 2018 · 2 comments

Comments

@roarapps
Copy link

roarapps commented Mar 2, 2018

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
Copy link

get same problem

@MichaelDanielTom
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants