We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9de73a commit 4156c9dCopy full SHA for 4156c9d
CDAlertView/Classes/CDAlertView.swift
@@ -290,7 +290,14 @@ open class CDAlertView: UIView {
290
completionBlock = completion
291
}
292
293
- public func hide(animations: CDAlertAnimationBlock? = nil,
+ // Instead of defining default `nil` parameter for `hide(animations: CDAlertAnimationBlock?, isPopupAnimated:Bool)` method
294
+ // we define this method for Objective-C compatibility.
295
+ // CDAlertAnimationBlock is not supported in Objective-C
296
+ public func hide(isPopupAnimated: Bool) {
297
+ hide(animations: nil, isPopupAnimated: isPopupAnimated)
298
+ }
299
+
300
+ public func hide(animations: CDAlertAnimationBlock?,
301
isPopupAnimated: Bool) {
302
if !isTextFieldHidden {
303
textField.resignFirstResponder()
0 commit comments