Post

Replies

Boosts

Views

Activity

In SwiftUI, how to hide tab bar when a list is tapped to show a new view (without the tab bar)?
This List in the first page of a tab view. When a cell is tapped, I want to show a new ChatRoomDetail view and hide tab bar. But I couldn't find a way in documentation. How should I do it? Thanks!struct ChatList: View { @State var showChatRoomDetail: Bool = false var items: [ChatRoom] var body: some View { NavigationView { List { ForEach(self.items) { item in NavigationLink(destination: ChatRoomDetail(currentMessage: "", chatRoom: item)){ Text(item.titleString) } } }
7
0
11k
May ’22