Releases: iLiuChang/LCToast
Releases · iLiuChang/LCToast
v2.0.0
- Fixed NSTimer: destroy toast view in time
- The activity toast can set the size more flexibly
- Modify function method name
old:
@interface UIView (LCToast)
- (void)lc_showToastWithMessage:(NSString *)message;
- (void)lc_showToastWithMessage:(NSString *)message position:(LCToastPosition)position;
- (void)lc_showToastWithMessage:(nullable NSString *)message image:(nullable UIImage *)image position:(LCToastPosition)position;
- (void)lc_dismissToast;
- (void)lc_dismissAllToasts;
- (void)lc_dismissAllPopups; // Remove all popups including toast/loading/progress.
@end
@interface UIView (LCActivityLoading)
- (void)lc_showLoading;
- (void)lc_showLoadingWithMessage:(nullable NSString *)message;
- (void)lc_showDisabledLoading; // `self` will not be able to respond to interaction events
- (void)lc_showDisabledLoadingWithMessage:(nullable NSString *)message; // `self` will not be able to respond to interaction events
- (void)lc_showLoadingWithMessage:(nullable NSString *)message position:(LCToastPosition)position disabled:(BOOL)disabled;
- (void)lc_dismissLoading;
@end
@interface UIView (LCActivityProgress)
- (void)lc_showProgress:(CGFloat)progress;
- (void)lc_showProgress:(CGFloat)progress message:(nullable NSString *)message;
- (void)lc_showProgress:(CGFloat)progress message:(nullable NSString *)message position:(LCToastPosition)position;
- (void)lc_dismissProgress;
@end
new:
@interface UIView (LCToast)
- (void)lc_showToast:(NSString *)message;
- (void)lc_showToast:(NSString *)message position:(LCToastPosition)position;
- (void)lc_showToast:(nullable NSString *)message image:(nullable UIImage *)image position:(LCToastPosition)position;
- (void)lc_dismissToast;
- (void)lc_dismissQueueToasts; // only removes the all toasts in the queue.
- (void)lc_dismissAllToasts; // remove all toasts.
@end
@interface UIView (LCActivityToast)
- (void)lc_showActivityToast;
- (void)lc_showActivityToast:(nullable NSString *)message;
- (void)lc_showDisabledActivityToast; // `self` will not be able to respond to interaction events
- (void)lc_showDisabledActivityToast:(nullable NSString *)message; // `self` will not be able to respond to interaction events
- (void)lc_showActivityToast:(nullable NSString *)message position:(LCToastPosition)position disabled:(BOOL)disabled;
- (void)lc_dismissActivityToast;
@end
@interface UIView (LCProgressToast)
- (void)lc_showProgressToast:(CGFloat)progress;
- (void)lc_showProgressToast:(CGFloat)progress message:(nullable NSString *)message;
- (void)lc_showProgressToast:(CGFloat)progress message:(nullable NSString *)message position:(LCToastPosition)position;
- (void)lc_dismissProgressToast;
@end