mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
4a9cd02fbc
Introduces the GalleryRoomTimelineItem and its typed GalleryItem model (reusing the existing per-message content types), builds it in the RoomTimelineItemFactory and routes it through RoomTimelineItemView. For now it renders as a placeholder; the grid/list media views and the full-screen preview land in follow-up PRs. Co-authored-by: svetoslav.mitov <svetoslav.mitov@sportinno.com>
23 lines
756 B
Swift
23 lines
756 B
Swift
//
|
|
// Copyright 2026 Element Creations Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
|
// Please see LICENSE files in the repository root for full details.
|
|
//
|
|
|
|
import Compound
|
|
import SwiftUI
|
|
|
|
struct GalleryRoomTimelineView: View {
|
|
let timelineItem: GalleryRoomTimelineItem
|
|
|
|
var body: some View {
|
|
TimelineStyler(timelineItem: timelineItem) {
|
|
// Placeholder rendering — the grid/list media views land in a follow-up.
|
|
FormattedBodyText(text: timelineItem.content.caption ?? timelineItem.content.body,
|
|
trailingReservedSize: timelineItem.trailingReservedSize,
|
|
boostFontSize: timelineItem.shouldBoost)
|
|
}
|
|
}
|
|
}
|