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

Cannot be used in Objective-C project. #89

Open
lm2343635 opened this issue Apr 26, 2017 · 0 comments
Open

Cannot be used in Objective-C project. #89

lm2343635 opened this issue Apr 26, 2017 · 0 comments

Comments

@lm2343635
Copy link

In the lasted version, show method cannot be found in Objective-C project.
I found the reason. TimeInterval(Double) is not existed in Objective-C, so the show method cannot transfer to a Objective-C method.
I try to use NSNumber to pass the parameter, but banner cannot be shown.

@objc open func showForOC(_ view: UIView? = Banner.topWindow(), duration: NSNumber? = nil) {
    self.show(view, duration: duration?.doubleValue)
}
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

1 participant