I run SwiftUI with following code in iPhone simulator and it's working well, but when run in macOS, it crash the app. I am using Xcode 11 beta 3
import SwiftUI
struct ContentView : View {
@State private var selection = 1
var body: some View {
TabbedView(selection: $selection) {
Text("Hello world").tabItemLabel(Text("Hello")).tag(0)
Text("Foo bar").tabItemLabel(Text("Foo")).tag(1)
}
}
}
#if DEBUG
struct ContentView_Previews : PreviewProvider {
static var previews: some View {
ContentView()
}
}
#endif
And I got the following error:
I got the following error COMPATIBILITY BUG IN CLIENT OF UIKIT: Moving method contentMinSize from UICanvas to UIWindowScene