Empty screens: Implement empty view management in RecentsViewController.

This commit is contained in:
SBiOSoftWhare
2020-11-26 11:02:42 +01:00
parent ec43f572eb
commit a8427c433e
2 changed files with 114 additions and 0 deletions
@@ -17,6 +17,8 @@
#import <MatrixKit/MatrixKit.h>
@class RootTabEmptyView;
@interface RecentsViewController : MXKRecentListViewController <MXKRecentListViewControllerDelegate>
{
@protected
@@ -83,6 +85,11 @@
*/
@property (nonatomic) NSString *screenName;
/**
Empty view to display when there is no item to show on the screen.
*/
@property (nonatomic, weak) RootTabEmptyView *emptyView;
/**
Return the sticky header for the specified section of the table view
@@ -177,5 +184,17 @@
- (void)didTapOnSectionHeader:(UIGestureRecognizer*)gestureRecognizer;
- (void)didSwipeOnSectionHeader:(UISwipeGestureRecognizer*)gestureRecognizer;
#pragma mark - Empty view
/**
Overrides this method to fill the empty view with data.
*/
- (void)updateEmptyView;
/**
Overrides this method to indicate if empty view should be shown. Returns NO by default.
*/
- (BOOL)shouldShowEmptyView;
@end