initial commit
This commit is contained in:
23
Example/SellyCloudSDK/UIView+SellyCloud.m
Normal file
23
Example/SellyCloudSDK/UIView+SellyCloud.m
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// UIVibrancyEffect+SellyCloud.m
|
||||
// SellyCloudSDK_Example
|
||||
//
|
||||
// Created by Caleb on 28/10/25.
|
||||
// Copyright © 2025 Caleb. All rights reserved.
|
||||
//
|
||||
|
||||
#import "UIView+SellyCloud.h"
|
||||
#import <MBProgressHUD/MBProgressHUD.h>
|
||||
|
||||
@implementation UIView (SellyCloud)
|
||||
- (void)showToast:(NSString *)text {
|
||||
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self animated:YES];
|
||||
hud.mode = MBProgressHUDModeText;
|
||||
hud.label.font = [UIFont systemFontOfSize:14];
|
||||
hud.label.text = text;
|
||||
hud.label.numberOfLines = 0;
|
||||
hud.margin = 15.f;
|
||||
hud.removeFromSuperViewOnHide = YES;
|
||||
[hud hideAnimated:YES afterDelay:2.0];
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user