tabview1 SwiftUI Tutorial 7 - Composing complex interfaces 1. Add a category viewimport SwiftUIstruct CategoryHome: View { var body: some View { NavigationSplitView { Text("Hello, World!") .navigationTitle("Featured") } detail: { Text("Select a Landmark") } }} 2. Create a category listLandmark 구조체에 Category enum과 프로퍼티를 추가한다. struct Landmark: Hashable, Codable, Identifiable { var id: Int .. 2024. 7. 9. 이전 1 다음