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

Many method are not available to used in Objective-C. #25

Closed
Ferannor opened this issue Aug 18, 2017 · 2 comments
Closed

Many method are not available to used in Objective-C. #25

Ferannor opened this issue Aug 18, 2017 · 2 comments

Comments

@Ferannor
Copy link

Hi,

I try to use CDAlertView in a Obj-C project but I've noticed some methods are not available. For exemple hide(animations: CDAlertAnimationBlock? = nil, isPopupAnimated: Bool) is not here.

I've install the library with CocoaPods.

To try, I've created a new method in CDAlertView :

public func hide(isPopupAnimated: Bool) { self.hide(animations: nil, isPopupAnimated: isPopupAnimated) }

This one appear in the generated .h. It seem like the CDAlertAnimationBlock is the problem.

@candostdagdeviren
Copy link
Owner

candostdagdeviren commented Aug 28, 2017

Hello!

Sorry for late response as I was in holidays. Some Swift features (inout in this case) are not available in Objective-C. So, bridging CDAlertAnimationBlock will not be included in Objective-C.

@candostdagdeviren
Copy link
Owner

Fixed with CDAlertView version 0.6.1

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

2 participants