Post

Replies

Boosts

Views

Activity

Reply to SwiftUI: List selection of custom struct
The ForEach should group the two Text views, together, in a common container, like a VStack, in order for both of these views to be treated as one, unique entry:   ForEach(rooms, id: \.title) { room in VStack {                         Text(room.title)                             .font(.title)                         Text(room.description)                             .font(.subheadline) }                 }
Sep ’22