1- #if !os(tvOS)
1+ #if !os(tvOS) && !os(visionOS)
22import SwiftUI
33import SwiftUIIntrospect
44import XCTest
@@ -19,24 +19,24 @@ final class ToggleWithSwitchStyleTests: XCTestCase {
1919 VStack {
2020 Toggle ( " " , isOn: . constant( true ) )
2121 . toggleStyle ( . switch)
22- #if os(iOS) || os(visionOS)
23- . introspect( . toggle( style: . switch) , on: . iOS( . v13, . v14, . v15, . v16, . v17) , . visionOS ( . v1 ) , customize: spy0)
22+ #if os(iOS)
23+ . introspect( . toggle( style: . switch) , on: . iOS( . v13, . v14, . v15, . v16, . v17) , customize: spy0)
2424 #elseif os(macOS)
2525 . introspect( . toggle( style: . switch) , on: . macOS( . v10_15, . v11, . v12, . v13, . v14) , customize: spy0)
2626 #endif
2727
2828 Toggle ( " " , isOn: . constant( false ) )
2929 . toggleStyle ( . switch)
30- #if os(iOS) || os(visionOS)
31- . introspect( . toggle( style: . switch) , on: . iOS( . v13, . v14, . v15, . v16, . v17) , . visionOS ( . v1 ) , customize: spy1)
30+ #if os(iOS)
31+ . introspect( . toggle( style: . switch) , on: . iOS( . v13, . v14, . v15, . v16, . v17) , customize: spy1)
3232 #elseif os(macOS)
3333 . introspect( . toggle( style: . switch) , on: . macOS( . v10_15, . v11, . v12, . v13, . v14) , customize: spy1)
3434 #endif
3535
3636 Toggle ( " " , isOn: . constant( true ) )
3737 . toggleStyle ( . switch)
38- #if os(iOS) || os(visionOS)
39- . introspect( . toggle( style: . switch) , on: . iOS( . v13, . v14, . v15, . v16, . v17) , . visionOS ( . v1 ) , customize: spy2)
38+ #if os(iOS)
39+ . introspect( . toggle( style: . switch) , on: . iOS( . v13, . v14, . v15, . v16, . v17) , customize: spy2)
4040 #elseif os(macOS)
4141 . introspect( . toggle( style: . switch) , on: . macOS( . v10_15, . v11, . v12, . v13, . v14) , customize: spy2)
4242 #endif
0 commit comments