It works for me.import SwiftUI struct TestView : View { var body: some View { TabbedView(selection: .constant(1)) { Text(Tab 1!).tabItemLabel(Text(Tab 1)).tag(1) Text(Tab 2!).tabItemLabel(Text(Tab 2)).tag(2) } } } #if DEBUG struct TestView_Previews : PreviewProvider { static var previews: some View { TestView() } } #endif
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: