selection 썸네일형 리스트형 [SwiftUI] TabView 사용해보기 https://developer.apple.com/documentation/swiftui/tabview Apple Developer Documentation developer.apple.com SwiftUI에서는 TabView를 이용해서 탭간 이동을 할 수 있습니다. 공식문서의 예제 코드를보면 탭뷰안에 뷰를 넣고 tag에 따라 뷰가 표시되는 방식입니다. 하지만, 저는 별도의 selection을 이용하여 탭뷰를 구성해보겠습니다. // Constants enum Constants { enum HomeTabItem: String, Hashable { case Home case Champion case Setting // NavigationView 사용시 타이틀 설정 var title: String { swit.. 더보기 이전 1 다음