mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Monthly media gallery separators (#3601)
* Fix the order of the items in the media grid. * Add media gallery timeline separators. * Change the `SeparatorRoomTimelineItem` to have it expose a Date timestamp instead of a text string.
This commit is contained in:
+7
-1
@@ -14,9 +14,15 @@ enum MediaEventsTimelineScreenMode {
|
||||
case files
|
||||
}
|
||||
|
||||
struct MediaEventsTimelineGroup: Identifiable {
|
||||
var id: String
|
||||
var title: String
|
||||
var items: [RoomTimelineItemViewState]
|
||||
}
|
||||
|
||||
struct MediaEventsTimelineScreenViewState: BindableState {
|
||||
var isBackPaginating = false
|
||||
var items = [RoomTimelineItemViewState]()
|
||||
var groups = [MediaEventsTimelineGroup]()
|
||||
|
||||
var bindings: MediaEventsTimelineScreenViewStateBindings
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user