candostdagdeviren / CDAlertView

Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift
https://candostdagdeviren.github.io/CDAlertView/
MIT License
1.14k stars 86 forks source link

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

Closed Ferannor closed 7 years ago

Ferannor commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Fixed with CDAlertView version 0.6.1