codestergit / SweetAlert-iOS

Live animated Alert View for iOS written in Swift
MIT License
2.05k stars 303 forks source link

Objective-C project use problem #55

Open 0x1306a94 opened 7 years ago

0x1306a94 commented 7 years ago

if defined(__has_feature) && __has_feature(modules)

@import UIKit;

endif

pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"

pragma clang diagnostic ignored "-Wduplicate-method-arg"

@class NSCoder; @class UIButton; @class NSBundle;

SWIFT_CLASS("_TtC4demo10SweetAlert") @interface SweetAlert : UIViewController

@interface UIColor (SWIFT_EXTENSION(demo)) @end

pragma clang diagnostic pop


- Can only use `showAlert:` API Can't meet the project requirements
- Then I translated into `Objective-C` language version
- If the infringement to you, please contact me, I will delete it
- [SJAlertView](https://github.com/king129/SJAlertView)