- Carthage framework was renamed:
LGAlertViewFramework
-> LGAlertView
. You need to re-add framework file.
- Refactored to support new swift features like
nullable
and nonnull
objects.
- Minimal iOS version increased to 8.0
- Fixed bugs with autolayouts
- Renamed notifications:
LGAlertViewWillShowNotification
LGAlertViewDidShowNotification
LGAlertViewWillDismissNotification
LGAlertViewDidDismissNotification
LGAlertViewActionNotification
LGAlertViewCancelNotification
LGAlertViewDestructiveNotification
- (void)showAnimated;
- (void)show;
- (void)dismissAnimated;
- (void)dismiss;
- (void)transitionToAlertView:(nonnull LGAlertView *)alertView;
// Deprecated
- (void)setButtonAtIndex:(NSUInteger)index enabled:(BOOL)enabled;
// New
- (void)setButtonEnabled:(BOOL)enabled atIndex:(NSUInteger)index;
- Added ability to show icons on buttons
@property (copy, nonatomic, nullable) NSArray *buttonsIconImages;
@property (copy, nonatomic, nullable) NSArray *buttonsIconImagesHighlighted;
@property (copy, nonatomic, nullable) NSArray *buttonsIconImagesDisabled;
@property (assign, nonatomic) LGAlertViewButtonIconPosition buttonsIconPosition;
@property (strong, nonatomic, nullable) UIImage *cancelButtonIconImage;
@property (strong, nonatomic, nullable) UIImage *cancelButtonIconImageHighlighted;
@property (strong, nonatomic, nullable) UIImage *cancelButtonIconImageDisabled;
@property (assign, nonatomic) LGAlertViewButtonIconPosition cancelButtonIconPosition;
@property (strong, nonatomic, nullable) UIImage *destructiveButtonIconImage;
@property (strong, nonatomic, nullable) UIImage *destructiveButtonIconImageHighlighted;
@property (strong, nonatomic, nullable) UIImage *destructiveButtonIconImageDisabled;
@property (assign, nonatomic) LGAlertViewButtonIconPosition destructiveButtonIconPosition;
- Change class methods to class properties:
// Before
[LGAlertView setTintColor:UIColor.greenColor];
// Now
LGAlertView.tintColor = UIColor.greenColor;
- Add ability to make cover view blurred