sberrevoets / SDCAlertView

The little alert that could
MIT License
1.86k stars 297 forks source link

How to use AlertBehaviors in Obj-c? #289

Closed M-I-N closed 5 years ago

M-I-N commented 5 years ago

When using SDCAlertView in Swift, there is an option to control behaviors. Like:

let alertController: AlertController = . . .

alertController.behaviors = .dismissOnOutsideTap

But as I need to use SDCAlertView in Objective-C how can I use the .dismissOnOutsideTap? I've tried:

alertController.behaviors = AlertBehaviorsDismissOnOutsideTap;

But it seems that the behaviors property can't be accessed in Objective-C.

I think there are compatibility issues when bridging between Swift-Objective-C. How to resolve this?

sberrevoets commented 5 years ago

Sorry, alert behaviors are not available in Objective-C.