UX rework: Make the UI of the directory section header

This commit is contained in:
manuroe
2017-04-20 18:06:49 +02:00
parent c8d12f70cc
commit 4799501ad3
2 changed files with 194 additions and 6 deletions
+16
View File
@@ -32,6 +32,14 @@ typedef enum : NSUInteger
} RecentsDataSourceMode;
/**
Action identifier used when the user tapped on the directory change button.
The `userInfo` is nil.
*/
extern NSString *const kRecentsDataSourceTapOnDirectoryServerChange;
/**
'RecentsDataSource' class inherits from 'MXKInterleavedRecentsDataSource' to define the Riot recents source
shared between all the applications tabs.
@@ -78,6 +86,14 @@ typedef enum : NSUInteger
*/
- (UIView *)viewForStickyHeaderInSection:(NSInteger)section withFrame:(CGRect)frame;
/**
Get the height of the section header view.
@param section the section index
@return the header height.
*/
- (CGFloat)heightForHeaderInSection:(NSInteger)section;
#pragma mark - Drag & Drop handling
/**
Return true of the cell can be moved from a section to another one.