반응형
iOS SwiftUI TabView 의 tabItem 누를 때 탭 전환 대신, 네비게이션 이동
탭뷰의 아이템 터치 시 탭 전환 말고 Navigation 이동 /// iOS 16 이상 버전 struct ContentView: View { @State private var isDetailViewPresented = false @State private var selectedTabIndex = 0 var body: some View { NavigationStack { TabView(selection: $selectedTabIndex) { Text("Tab 0 Content") .tabItem { Image(systemName: "0.circle.fill") Text("Tab 0") } .tag(0) Text("Tab 1 Content") .tabItem { Image(systemName: "1.circ..
iOS SwiftUI
2024. 1. 1. 00:00
반응형