Add new loading indicators

This commit is contained in:
Andy Uhnak
2022-02-12 17:18:52 +00:00
parent c1aeb8ff1c
commit 3c2ef4eabc
24 changed files with 628 additions and 188 deletions
@@ -80,6 +80,8 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
@property (nonatomic, strong) RoomNotificationSettingsCoordinatorBridgePresenter *roomNotificationSettingsCoordinatorBridgePresenter;
@property (nonatomic, strong) GlobalActivityCenterPresenter *activityPresenter;
@end
@implementation RecentsViewController
@@ -135,6 +137,8 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
self.activityPresenter = [[GlobalActivityCenterPresenter alloc] init];
self.recentsTableView.accessibilityIdentifier = @"RecentsVCTableView";
// Register here the customized cell view class used to render recents
@@ -2390,4 +2394,18 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
self.roomNotificationSettingsCoordinatorBridgePresenter = nil;
}
#pragma mark - Activity Indicator
- (BOOL)providesCustomActivityIndicator {
return YES;
}
- (void)startActivityIndicator {
[self.activityPresenter presentActivityIndicatorWithAnimated:YES];
}
- (void)stopActivityIndicator {
[self.activityPresenter removeCurrentActivityIndicatorWithAnimated:YES completion:nil];
}
@end