mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
* New tutorial: Building SyncUps. * fix * clean up * wip * wip * wip * wip * wip --------- Co-authored-by: Stephen Celis <stephen@stephencelis.com>
29 lines
525 B
Swift
29 lines
525 B
Swift
import SwiftUI
|
|
|
|
struct MeetingView: View {
|
|
let meeting: Meeting
|
|
let syncUp: SyncUp
|
|
|
|
var body: some View {
|
|
Form {
|
|
Section {
|
|
ForEach(syncUp.attendees) { attendee in
|
|
Text(attendee.name)
|
|
}
|
|
} header: {
|
|
Text("Attendees")
|
|
}
|
|
Section {
|
|
Text(meeting.transcript)
|
|
} header: {
|
|
Text("Transcript")
|
|
}
|
|
}
|
|
.navigationTitle(Text(meeting.date, style: .date))
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
MeetingView(meeting: SyncUp.mock.meetings[0], syncUp: .mock)
|
|
}
|