Repository navigation
Releases: LGLibs/LGAlertView
Releases · LGLibs/LGAlertView
Release list
2.4.4: Update README.md
Signed-off-by: Grigorii Lutkov <grigorii@lutkov.dev>
2.4.3
- Added possible fix for #62
- Update demo project
- Update readme with info about
safeAreaInsets
2.4.2
2.4.1 Still alive
Xcode compile fix and some other bug fixes.
2.4.0
- Now you can use
progressLabelTextforalertViewwithactivityIndicatoras well as foralertViewwithprogressView:
alertView.progressLabelText = @"Some text"- Now you can set progress using
@property:
alertView.progress = 50.0;2.3.2
- Refactoring
- Optimizations
- Now you can make AlertView background blurred
- Add new delegates, blocks and notifications to add custom animations:
# Delegates
- (void)showAnimationsForAlertView:(nonnull LGAlertView *)alertView duration:(NSTimeInterval)duration;
- (void)dismissAnimationsForAlertView:(nonnull LGAlertView *)alertView duration:(NSTimeInterval)duration;
# Blocks
void(^ _Nullable showAnimationsBlock)(LGAlertView * _Nonnull alertView, NSTimeInterval duration);
void(^ _Nullable dismissAnimationsBlock)(LGAlertView * _Nonnull alertView, NSTimeInterval duration);
# Notifications
LGAlertViewShowAnimationsNotification;
LGAlertViewDismissAnimationsNotification;2.3.1
Fix bugs with status bar and keyboard
2.3.0
- Fix bugs
- Refactoring
- Some deprecations in
delegateprotocol:
// BEFORE
- (void)alertView:(nonnull LGAlertView *)alertView buttonPressedWithTitle:(nullable NSString *)title index:(NSUInteger)index;
- (void)alertViewDestructiveButtonPressed:(nonnull LGAlertView *)alertView;
// NOW
- (void)alertView:(nonnull LGAlertView *)alertView clickedButtonAtIndex:(NSUInteger)index title:(nullable NSString *)title;
- (void)alertViewDestructed:(nonnull LGAlertView *)alertView;- Add new collbacks, delegate methods and notifications:
// Notifications
extern NSString *_Nonnull const LGAlertViewDidDismissAfterActionNotification;
extern NSString *_Nonnull const LGAlertViewDidDismissAfterCancelNotification;
extern NSString *_Nonnull const LGAlertViewDidDismissAfterDestructiveNotification;
// Callbacks
@property (copy, nonatomic) LGAlertViewActionHandler didDismissAfterActionHandler;
@property (copy, nonatomic) LGAlertViewHandler didDismissAfterCancelHandler;
@property (copy, nonatomic) LGAlertViewHandler didDismissAfterDestructiveHandler;
// Delegate methods
- (void)alertView:(nonnull LGAlertView *)alertView didDismissAfterClickedButtonAtIndex:(NSUInteger)index title:(nullable NSString *)title;
- (void)alertViewDidDismissAfterCancelled:(nonnull LGAlertView *)alertView;
- (void)alertViewDidDismissAfterDestructed:(nonnull LGAlertView *)alertView;- Add new property (when LGAlertView is dismissing after some action):
/** Default is YES */
@property (assign, nonatomic) BOOL shouldDismissAnimated UI_APPEARANCE_SELECTOR;- Removed class method to get all existing LGAlertViews
+ (NSArray *)getAlertViewsArray;2.2.0
- Refactoring
- Fix bugs
- Add new properties for setup text fields:
/** Default is [UIColor colorWithWhite:0.97 alpha:1.0] */
@property (strong, nonatomic, nullable) UIColor *textFieldsBackgroundColor UI_APPEARANCE_SELECTOR;
/** Default is UIColor.blackColor */
@property (strong, nonatomic, nullable) UIColor *textFieldsTextColor UI_APPEARANCE_SELECTOR;
/** Default is [UIFont systemFontOfSize:16.0] */
@property (strong, nonatomic, nullable) UIFont *textFieldsFont UI_APPEARANCE_SELECTOR;
/** Default is NSTextAlignmentLeft */
@property (assign, nonatomic) NSTextAlignment textFieldsTextAlignment UI_APPEARANCE_SELECTOR;
/** Default is NO */
@property (assign, nonatomic) BOOL textFieldsClearsOnBeginEditing UI_APPEARANCE_SELECTOR;
/** Default is NO */
@property (assign, nonatomic) BOOL textFieldsAdjustsFontSizeToFitWidth UI_APPEARANCE_SELECTOR;
/** Default is 12.0 */
@property (assign, nonatomic) CGFloat textFieldsMinimumFontSize UI_APPEARANCE_SELECTOR;
/** Default is UITextFieldViewModeAlways */
@property (assign, nonatomic) UITextFieldViewMode textFieldsClearButtonMode UI_APPEARANCE_SELECTOR;- Now instead of using
classmethods to set global properties, you need to useappearance:
# BEFORE
LGAlertView.tintColor = [UIColor greenColor];
# NOW
[LGAlertView appearance].tintColor = UIColor.greenColor;