My big project started throwing errors: Type 'ToggleStyle' has no member 'switch'
Made new test project:
struct ContentView: View {
@State var isOn = false
var body: some View {
Text("Hello, world!")
.padding()
Toggle(isOn: $isOn) {
Text("IPv6")
}
.toggleStyle(.switch)
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Throws the same error: Type 'ToggleStyle' has no member 'switch'
what's wrong with this code ?
I believe this is related to this warning of Xcode 13.0 oficial release(13A233)(not beta). macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 12.0, but the range of supported deployment target versions is 10.9 to 11.3.99.
So it seems after i upgraded Xcdoe 13 beta to Xcode 13 i lost ability to build for 12.0... And now i can't event download Xcode-beta 13... Ideas ?