wip
This commit is contained in:
parent
47ae808661
commit
de4f8692eb
|
@ -29,7 +29,7 @@ struct ContentView: View {
|
|||
tabBarController.tabBar.layer.backgroundColor = UIColor.green.cgColor
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.tabView, on: .macOS(.v10_15, .v11, .v12, .v13)) { splitView in
|
||||
.introspect(.tabView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { splitView in
|
||||
splitView.subviews.first?.layer?.backgroundColor = NSColor.green.cgColor
|
||||
}
|
||||
#endif
|
||||
|
@ -66,12 +66,12 @@ struct ListShowcase: View {
|
|||
tableView.backgroundView = UIView()
|
||||
tableView.backgroundColor = .cyan
|
||||
}
|
||||
.introspect(.list, on: .iOS(.v16)) { collectionView in
|
||||
.introspect(.list, on: .iOS(.v16, .v17)) { collectionView in
|
||||
collectionView.backgroundView = UIView()
|
||||
collectionView.subviews.dropFirst(1).first?.backgroundColor = .cyan
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13)) { tableView in
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { tableView in
|
||||
tableView.backgroundColor = .cyan
|
||||
}
|
||||
#endif
|
||||
|
@ -91,12 +91,12 @@ struct ListShowcase: View {
|
|||
tableView.backgroundView = UIView()
|
||||
tableView.backgroundColor = .cyan
|
||||
}
|
||||
.introspect(.list, on: .iOS(.v16), scope: .ancestor) { collectionView in
|
||||
.introspect(.list, on: .iOS(.v16, .v17), scope: .ancestor) { collectionView in
|
||||
collectionView.backgroundView = UIView()
|
||||
collectionView.subviews.dropFirst(1).first?.backgroundColor = .cyan
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13), scope: .ancestor) { tableView in
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor) { tableView in
|
||||
tableView.backgroundColor = .cyan
|
||||
}
|
||||
#endif
|
||||
|
@ -131,7 +131,7 @@ struct ScrollViewShowcase: View {
|
|||
scrollView.layer.backgroundColor = UIColor.cyan.cgColor
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13)) { scrollView in
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { scrollView in
|
||||
scrollView.drawsBackground = true
|
||||
scrollView.backgroundColor = .cyan
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ struct ScrollViewShowcase: View {
|
|||
scrollView.layer.backgroundColor = UIColor.cyan.cgColor
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13), scope: .ancestor) { scrollView in
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor) { scrollView in
|
||||
scrollView.drawsBackground = true
|
||||
scrollView.backgroundColor = .cyan
|
||||
}
|
||||
|
@ -233,7 +233,7 @@ struct SimpleElementsShowcase: View {
|
|||
textField.backgroundColor = .red
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13)) { textField in
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { textField in
|
||||
textField.backgroundColor = .red
|
||||
}
|
||||
#endif
|
||||
|
@ -245,7 +245,7 @@ struct SimpleElementsShowcase: View {
|
|||
textField.backgroundColor = .green
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13)) { textField in
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { textField in
|
||||
textField.backgroundColor = .green
|
||||
}
|
||||
#endif
|
||||
|
@ -258,7 +258,7 @@ struct SimpleElementsShowcase: View {
|
|||
toggle.backgroundColor = .red
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13)) { toggle in
|
||||
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { toggle in
|
||||
toggle.layer?.backgroundColor = NSColor.red.cgColor
|
||||
}
|
||||
#endif
|
||||
|
@ -269,7 +269,7 @@ struct SimpleElementsShowcase: View {
|
|||
toggle.backgroundColor = .green
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13)) { toggle in
|
||||
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { toggle in
|
||||
toggle.layer?.backgroundColor = NSColor.green.cgColor
|
||||
}
|
||||
#endif
|
||||
|
@ -283,7 +283,7 @@ struct SimpleElementsShowcase: View {
|
|||
slider.backgroundColor = .red
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13)) { slider in
|
||||
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { slider in
|
||||
slider.layer?.backgroundColor = NSColor.red.cgColor
|
||||
}
|
||||
#endif
|
||||
|
@ -294,7 +294,7 @@ struct SimpleElementsShowcase: View {
|
|||
slider.backgroundColor = .green
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13)) { slider in
|
||||
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { slider in
|
||||
slider.layer?.backgroundColor = NSColor.green.cgColor
|
||||
}
|
||||
#endif
|
||||
|
@ -309,7 +309,7 @@ struct SimpleElementsShowcase: View {
|
|||
stepper.backgroundColor = .red
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13)) { stepper in
|
||||
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { stepper in
|
||||
stepper.layer?.backgroundColor = NSColor.red.cgColor
|
||||
}
|
||||
#endif
|
||||
|
@ -322,7 +322,7 @@ struct SimpleElementsShowcase: View {
|
|||
stepper.backgroundColor = .green
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13)) { stepper in
|
||||
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { stepper in
|
||||
stepper.layer?.backgroundColor = NSColor.green.cgColor
|
||||
}
|
||||
#endif
|
||||
|
@ -337,7 +337,7 @@ struct SimpleElementsShowcase: View {
|
|||
datePicker.backgroundColor = .red
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13)) { datePicker in
|
||||
.introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { datePicker in
|
||||
datePicker.layer?.backgroundColor = NSColor.red.cgColor
|
||||
}
|
||||
#endif
|
||||
|
@ -356,7 +356,7 @@ struct SimpleElementsShowcase: View {
|
|||
datePicker.backgroundColor = .red
|
||||
}
|
||||
#elseif os(macOS)
|
||||
.introspect(.picker(style: .segmented), on: .macOS(.v10_15, .v11, .v12, .v13)) { datePicker in
|
||||
.introspect(.picker(style: .segmented), on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { datePicker in
|
||||
datePicker.layer?.backgroundColor = NSColor.red.cgColor
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -19,24 +19,24 @@ final class ButtonTests: XCTestCase {
|
|||
Button("Button 0", action: {})
|
||||
.buttonStyle(.bordered)
|
||||
#if os(macOS)
|
||||
.introspect(.button, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.button, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
Button("Button 1", action: {})
|
||||
.buttonStyle(.borderless)
|
||||
#if os(macOS)
|
||||
.introspect(.button, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.button, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
Button("Button 2", action: {})
|
||||
.buttonStyle(.link)
|
||||
#if os(macOS)
|
||||
.introspect(.button, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.button, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
|
||||
Button("Button 3", action: {})
|
||||
#if os(macOS)
|
||||
.introspect(.button, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy3)
|
||||
.introspect(.button, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy3)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -28,21 +28,21 @@ final class ColorPickerTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.colorPicker, on: .iOS(.v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.colorPicker, on: .macOS(.v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.colorPicker, on: .macOS(.v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
ColorPicker("", selection: .constant(PlatformColor.green.cgColor))
|
||||
#if os(iOS)
|
||||
.introspect(.colorPicker, on: .iOS(.v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.colorPicker, on: .macOS(.v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.colorPicker, on: .macOS(.v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
ColorPicker("", selection: .constant(PlatformColor.blue.cgColor))
|
||||
#if os(iOS)
|
||||
.introspect(.colorPicker, on: .iOS(.v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.colorPicker, on: .macOS(.v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.colorPicker, on: .macOS(.v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -25,7 +25,7 @@ final class DatePickerTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.datePicker, on: .iOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -33,7 +33,7 @@ final class DatePickerTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.datePicker, on: .iOS(.v13, .v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -41,7 +41,7 @@ final class DatePickerTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.datePicker, on: .iOS(.v13, .v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.datePicker, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -31,7 +31,7 @@ final class DatePickerWithCompactStyleTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.datePicker(style: .compact), on: .iOS(.v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.datePicker(style: .compact), on: .macOS(.v10_15_4, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.datePicker(style: .compact), on: .macOS(.v10_15_4, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -40,7 +40,7 @@ final class DatePickerWithCompactStyleTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.datePicker(style: .compact), on: .iOS(.v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.datePicker(style: .compact), on: .macOS(.v10_15_4, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.datePicker(style: .compact), on: .macOS(.v10_15_4, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -49,7 +49,7 @@ final class DatePickerWithCompactStyleTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.datePicker(style: .compact), on: .iOS(.v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.datePicker(style: .compact), on: .macOS(.v10_15_4, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.datePicker(style: .compact), on: .macOS(.v10_15_4, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -22,21 +22,21 @@ final class DatePickerWithFieldStyleTests: XCTestCase {
|
|||
DatePicker("", selection: .constant(date0))
|
||||
.datePickerStyle(.field)
|
||||
#if os(macOS)
|
||||
.introspect(.datePicker(style: .field), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.datePicker(style: .field), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
DatePicker("", selection: .constant(date1))
|
||||
.datePickerStyle(.field)
|
||||
#if os(macOS)
|
||||
.introspect(.datePicker(style: .field), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.datePicker(style: .field), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
DatePicker("", selection: .constant(date2))
|
||||
.datePickerStyle(.field)
|
||||
#if os(macOS)
|
||||
.introspect(.datePicker(style: .field), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.datePicker(style: .field), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -31,7 +31,7 @@ final class DatePickerWithGraphicalStyleTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.datePicker(style: .graphical), on: .iOS(.v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.datePicker(style: .graphical), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.datePicker(style: .graphical), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -40,7 +40,7 @@ final class DatePickerWithGraphicalStyleTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.datePicker(style: .graphical), on: .iOS(.v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.datePicker(style: .graphical), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.datePicker(style: .graphical), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -49,7 +49,7 @@ final class DatePickerWithGraphicalStyleTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.datePicker(style: .graphical), on: .iOS(.v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.datePicker(style: .graphical), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.datePicker(style: .graphical), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -22,21 +22,21 @@ final class DatePickerWithWheelStyleTests: XCTestCase {
|
|||
DatePicker("", selection: .constant(date0))
|
||||
.datePickerStyle(.stepperField)
|
||||
#if os(macOS)
|
||||
.introspect(.datePicker(style: .stepperField), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.datePicker(style: .stepperField), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
DatePicker("", selection: .constant(date1))
|
||||
.datePickerStyle(.stepperField)
|
||||
#if os(macOS)
|
||||
.introspect(.datePicker(style: .stepperField), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.datePicker(style: .stepperField), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
DatePicker("", selection: .constant(date2))
|
||||
.datePickerStyle(.stepperField)
|
||||
#if os(macOS)
|
||||
.introspect(.datePicker(style: .stepperField), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.datePicker(style: .stepperField), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -21,14 +21,14 @@ final class FormTests: XCTestCase {
|
|||
}
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.form, on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16)) { spy0($0) }
|
||||
.introspect(.form, on: .iOS(.v16)) { spy0($0) }
|
||||
.introspect(.form, on: .iOS(.v16, .v17)) { spy0($0) }
|
||||
#endif
|
||||
|
||||
Form {
|
||||
Text("Item 1")
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.form, on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.form, on: .iOS(.v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.form, on: .iOS(.v16, .v17), scope: .ancestor) { spy1($0) }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,8 +25,8 @@ final class FormWithGroupedStyleTests: XCTestCase {
|
|||
}
|
||||
.formStyle(.grouped)
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.form(style: .grouped), on: .iOS(.v16)) { spy0($0) }
|
||||
.introspect(.form(style: .grouped), on: .tvOS(.v16)) { spy0($0) }
|
||||
.introspect(.form(style: .grouped), on: .iOS(.v16, .v17)) { spy0($0) }
|
||||
.introspect(.form(style: .grouped), on: .tvOS(.v16, .v17)) { spy0($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.form(style: .grouped), on: .macOS(.v13)) { spy0($0) }
|
||||
#endif
|
||||
|
@ -34,8 +34,8 @@ final class FormWithGroupedStyleTests: XCTestCase {
|
|||
Form {
|
||||
Text("Item 1")
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.form(style: .grouped), on: .iOS(.v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.form(style: .grouped), on: .tvOS(.v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.form(style: .grouped), on: .iOS(.v16, .v17), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.form(style: .grouped), on: .tvOS(.v16, .v17), scope: .ancestor) { spy1($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.form(style: .grouped), on: .macOS(.v13), scope: .ancestor) { spy1($0) }
|
||||
#endif
|
||||
|
|
|
@ -17,9 +17,9 @@ final class ListCellTests: XCTestCase {
|
|||
Text("Item 1")
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.listCell, on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16)) { spy($0) }
|
||||
.introspect(.listCell, on: .iOS(.v16)) { spy($0) }
|
||||
.introspect(.listCell, on: .iOS(.v16, .v17)) { spy($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.listCell, on: .macOS(.v10_15, .v11, .v12, .v13)) { spy($0) }
|
||||
.introspect(.listCell, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { spy($0) }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -33,9 +33,9 @@ final class ListCellTests: XCTestCase {
|
|||
Text("Item 1")
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.listCell, on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16)) { spy($0) }
|
||||
.introspect(.listCell, on: .iOS(.v16)) { spy($0) }
|
||||
.introspect(.listCell, on: .iOS(.v16, .v17)) { spy($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.listCell, on: .macOS(.v10_15, .v11, .v12, .v13)) { spy($0) }
|
||||
.introspect(.listCell, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { spy($0) }
|
||||
#endif
|
||||
.clipped()
|
||||
.clipShape(RoundedRectangle(cornerRadius: 20.0))
|
||||
|
|
|
@ -20,18 +20,18 @@ final class ListTests: XCTestCase {
|
|||
}
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.list, on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16)) { spy0($0) }
|
||||
.introspect(.list, on: .iOS(.v16)) { spy0($0) }
|
||||
.introspect(.list, on: .iOS(.v16, .v17)) { spy0($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13)) { spy0($0) }
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { spy0($0) }
|
||||
#endif
|
||||
|
||||
List {
|
||||
Text("Item 1")
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.list, on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list, on: .iOS(.v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list, on: .iOS(.v16, .v17), scope: .ancestor) { spy1($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor) { spy1($0) }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -54,12 +54,12 @@ final class ListTests: XCTestCase {
|
|||
}
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.list, on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16)) { spy1($0) }
|
||||
.introspect(.list, on: .iOS(.v16)) { spy1($0) }
|
||||
.introspect(.list, on: .iOS(.v16, .v17)) { spy1($0) }
|
||||
#endif
|
||||
}
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.list, on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16)) { spy0($0) }
|
||||
.introspect(.list, on: .iOS(.v16)) { spy0($0) }
|
||||
.introspect(.list, on: .iOS(.v16, .v17)) { spy0($0) }
|
||||
#endif
|
||||
} extraAssertions: {
|
||||
XCTAssert($0[safe: 0] !== $0[safe: 1])
|
||||
|
@ -78,9 +78,9 @@ final class ListTests: XCTestCase {
|
|||
}
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.list, on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16)) { spy0($0) }
|
||||
.introspect(.list, on: .iOS(.v16)) { spy0($0) }
|
||||
.introspect(.list, on: .iOS(.v16, .v17)) { spy0($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13)) { spy0($0) }
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { spy0($0) }
|
||||
#endif
|
||||
.clipped()
|
||||
.clipShape(RoundedRectangle(cornerRadius: 20.0))
|
||||
|
@ -90,9 +90,9 @@ final class ListTests: XCTestCase {
|
|||
Text("Item 1")
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.list, on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list, on: .iOS(.v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list, on: .iOS(.v16, .v17), scope: .ancestor) { spy1($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor) { spy1($0) }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,13 +24,13 @@ final class ListWithBorderedStyleTests: XCTestCase {
|
|||
}
|
||||
.listStyle(.bordered)
|
||||
#if os(macOS)
|
||||
.introspect(.list(style: .bordered), on: .macOS(.v12, .v13)) { spy0($0) }
|
||||
.introspect(.list(style: .bordered), on: .macOS(.v12, .v13, .v14)) { spy0($0) }
|
||||
#endif
|
||||
|
||||
List {
|
||||
Text("Item 1")
|
||||
#if os(macOS)
|
||||
.introspect(.list(style: .bordered), on: .macOS(.v12, .v13), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .bordered), on: .macOS(.v12, .v13, .v14), scope: .ancestor) { spy1($0) }
|
||||
#endif
|
||||
}
|
||||
.listStyle(.bordered)
|
||||
|
|
|
@ -20,14 +20,14 @@ final class ListWithGroupedStyleTests: XCTestCase {
|
|||
.listStyle(.grouped)
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.list(style: .grouped), on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16)) { spy0($0) }
|
||||
.introspect(.list(style: .grouped), on: .iOS(.v16)) { spy0($0) }
|
||||
.introspect(.list(style: .grouped), on: .iOS(.v16, .v17)) { spy0($0) }
|
||||
#endif
|
||||
|
||||
List {
|
||||
Text("Item 1")
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.list(style: .grouped), on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .grouped), on: .iOS(.v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .grouped), on: .iOS(.v16, .v17), scope: .ancestor) { spy1($0) }
|
||||
#endif
|
||||
}
|
||||
.listStyle(.grouped)
|
||||
|
|
|
@ -25,14 +25,14 @@ final class ListWithInsetGroupedStyleTests: XCTestCase {
|
|||
.listStyle(.insetGrouped)
|
||||
#if os(iOS)
|
||||
.introspect(.list(style: .insetGrouped), on: .iOS(.v14, .v15)) { spy0($0) }
|
||||
.introspect(.list(style: .insetGrouped), on: .iOS(.v16)) { spy0($0) }
|
||||
.introspect(.list(style: .insetGrouped), on: .iOS(.v16, .v17)) { spy0($0) }
|
||||
#endif
|
||||
|
||||
List {
|
||||
Text("Item 1")
|
||||
#if os(iOS)
|
||||
.introspect(.list(style: .insetGrouped), on: .iOS(.v14, .v15), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .insetGrouped), on: .iOS(.v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .insetGrouped), on: .iOS(.v16, .v17), scope: .ancestor) { spy1($0) }
|
||||
#endif
|
||||
}
|
||||
.listStyle(.insetGrouped)
|
||||
|
|
|
@ -27,18 +27,18 @@ final class ListWithInsetStyleTests: XCTestCase {
|
|||
.listStyle(.inset)
|
||||
#if os(iOS)
|
||||
.introspect(.list(style: .inset), on: .iOS(.v14, .v15)) { spy0($0) }
|
||||
.introspect(.list(style: .inset), on: .iOS(.v16)) { spy0($0) }
|
||||
.introspect(.list(style: .inset), on: .iOS(.v16, .v17)) { spy0($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.list(style: .inset), on: .macOS(.v11, .v12, .v13)) { spy0($0) }
|
||||
.introspect(.list(style: .inset), on: .macOS(.v11, .v12, .v13, .v14)) { spy0($0) }
|
||||
#endif
|
||||
|
||||
List {
|
||||
Text("Item 1")
|
||||
#if os(iOS)
|
||||
.introspect(.list(style: .inset), on: .iOS(.v14, .v15), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .inset), on: .iOS(.v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .inset), on: .iOS(.v16, .v17), scope: .ancestor) { spy1($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.list(style: .inset), on: .macOS(.v11, .v12, .v13), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .inset), on: .macOS(.v11, .v12, .v13, .v14), scope: .ancestor) { spy1($0) }
|
||||
#endif
|
||||
}
|
||||
.listStyle(.inset)
|
||||
|
|
|
@ -21,18 +21,18 @@ final class ListWithPlainStyleTests: XCTestCase {
|
|||
.listStyle(.plain)
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.list(style: .plain), on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16)) { spy0($0) }
|
||||
.introspect(.list(style: .plain), on: .iOS(.v16)) { spy0($0) }
|
||||
.introspect(.list(style: .plain), on: .iOS(.v16, .v17)) { spy0($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.list(style: .plain), on: .macOS(.v10_15, .v11, .v12, .v13)) { spy0($0) }
|
||||
.introspect(.list(style: .plain), on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { spy0($0) }
|
||||
#endif
|
||||
|
||||
List {
|
||||
Text("Item 1")
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.list(style: .plain), on: .iOS(.v13, .v14, .v15), .tvOS(.v13, .v14, .v15, .v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .plain), on: .iOS(.v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .plain), on: .iOS(.v16, .v17), scope: .ancestor) { spy1($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.list(style: .plain), on: .macOS(.v10_15, .v11, .v12, .v13), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .plain), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor) { spy1($0) }
|
||||
#endif
|
||||
}
|
||||
.listStyle(.plain)
|
||||
|
|
|
@ -27,18 +27,18 @@ final class ListWithSidebarStyleTests: XCTestCase {
|
|||
.listStyle(.sidebar)
|
||||
#if os(iOS)
|
||||
.introspect(.list(style: .sidebar), on: .iOS(.v14, .v15)) { spy0($0) }
|
||||
.introspect(.list(style: .sidebar), on: .iOS(.v16)) { spy0($0) }
|
||||
.introspect(.list(style: .sidebar), on: .iOS(.v16, .v17)) { spy0($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.list(style: .sidebar), on: .macOS(.v10_15, .v11, .v12, .v13)) { spy0($0) }
|
||||
.introspect(.list(style: .sidebar), on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) { spy0($0) }
|
||||
#endif
|
||||
|
||||
List {
|
||||
Text("Item 1")
|
||||
#if os(iOS)
|
||||
.introspect(.list(style: .sidebar), on: .iOS(.v14, .v15), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .sidebar), on: .iOS(.v16), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .sidebar), on: .iOS(.v16, .v17), scope: .ancestor) { spy1($0) }
|
||||
#elseif os(macOS)
|
||||
.introspect(.list(style: .sidebar), on: .macOS(.v10_15, .v11, .v12, .v13), scope: .ancestor) { spy1($0) }
|
||||
.introspect(.list(style: .sidebar), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor) { spy1($0) }
|
||||
#endif
|
||||
}
|
||||
.listStyle(.sidebar)
|
||||
|
|
|
@ -33,9 +33,9 @@ final class NavigationSplitViewTests: XCTestCase {
|
|||
}
|
||||
}
|
||||
#if os(iOS)
|
||||
.introspect(.navigationSplitView, on: .iOS(.v16), customize: spy)
|
||||
.introspect(.navigationSplitView, on: .iOS(.v16, .v17), customize: spy)
|
||||
#elseif os(tvOS)
|
||||
.introspect(.navigationSplitView, on: .tvOS(.v16), customize: spy)
|
||||
.introspect(.navigationSplitView, on: .tvOS(.v16, .v17), customize: spy)
|
||||
#elseif os(macOS)
|
||||
.introspect(.navigationSplitView, on: .macOS(.v13), customize: spy)
|
||||
#endif
|
||||
|
@ -56,9 +56,9 @@ final class NavigationSplitViewTests: XCTestCase {
|
|||
Color.red
|
||||
Text("Sidebar")
|
||||
#if os(iOS)
|
||||
.introspect(.navigationSplitView, on: .iOS(.v16), scope: .ancestor, customize: spy)
|
||||
.introspect(.navigationSplitView, on: .iOS(.v16, .v17), scope: .ancestor, customize: spy)
|
||||
#elseif os(tvOS)
|
||||
.introspect(.navigationSplitView, on: .tvOS(.v16), scope: .ancestor, customize: spy)
|
||||
.introspect(.navigationSplitView, on: .tvOS(.v16, .v17), scope: .ancestor, customize: spy)
|
||||
#elseif os(macOS)
|
||||
.introspect(.navigationSplitView, on: .macOS(.v13), scope: .ancestor, customize: spy)
|
||||
#endif
|
||||
|
|
|
@ -24,7 +24,7 @@ final class NavigationStackTests: XCTestCase {
|
|||
}
|
||||
}
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.navigationStack, on: .iOS(.v16), .tvOS(.v16), customize: spy)
|
||||
.introspect(.navigationStack, on: .iOS(.v16, .v17), .tvOS(.v16, .v17), customize: spy)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ final class NavigationStackTests: XCTestCase {
|
|||
Color.red
|
||||
Text("Something")
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.navigationStack, on: .iOS(.v16), .tvOS(.v16), scope: .ancestor, customize: spy)
|
||||
.introspect(.navigationStack, on: .iOS(.v16, .v17), .tvOS(.v16, .v17), scope: .ancestor, customize: spy)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ final class NavigationViewWithColumnsStyleTests: XCTestCase {
|
|||
#elseif os(tvOS)
|
||||
.introspect(.navigationView(style: .columns), on: .tvOS(.v13, .v14, .v15, .v16), customize: spy)
|
||||
#elseif os(macOS)
|
||||
.introspect(.navigationView(style: .columns), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy)
|
||||
.introspect(.navigationView(style: .columns), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ final class NavigationViewWithColumnsStyleTests: XCTestCase {
|
|||
#elseif os(tvOS)
|
||||
.introspect(.navigationView(style: .columns), on: .tvOS(.v13, .v14, .v15, .v16), scope: .ancestor, customize: spy)
|
||||
#elseif os(macOS)
|
||||
.introspect(.navigationView(style: .columns), on: .macOS(.v10_15, .v11, .v12, .v13), scope: .ancestor, customize: spy)
|
||||
.introspect(.navigationView(style: .columns), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor, customize: spy)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ final class PickerWithMenuStyleTests: XCTestCase {
|
|||
}
|
||||
.pickerStyle(.menu)
|
||||
#if os(macOS)
|
||||
.introspect(.picker(style: .menu), on: .macOS(.v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.picker(style: .menu), on: .macOS(.v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -30,7 +30,7 @@ final class PickerWithMenuStyleTests: XCTestCase {
|
|||
}
|
||||
.pickerStyle(.menu)
|
||||
#if os(macOS)
|
||||
.introspect(.picker(style: .menu), on: .macOS(.v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.picker(style: .menu), on: .macOS(.v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -41,7 +41,7 @@ final class PickerWithMenuStyleTests: XCTestCase {
|
|||
}
|
||||
.pickerStyle(.menu)
|
||||
#if os(macOS)
|
||||
.introspect(.picker(style: .menu), on: .macOS(.v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.picker(style: .menu), on: .macOS(.v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -23,7 +23,7 @@ final class PickerWithSegmentedStyleTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.picker(style: .segmented), on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.picker(style: .segmented), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.picker(style: .segmented), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -35,7 +35,7 @@ final class PickerWithSegmentedStyleTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.picker(style: .segmented), on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.picker(style: .segmented), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.picker(style: .segmented), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -48,7 +48,7 @@ final class PickerWithSegmentedStyleTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.picker(style: .segmented), on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.picker(style: .segmented), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.picker(style: .segmented), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -25,7 +25,7 @@ final class ProgressViewWithCircularStyleTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.progressView(style: .circular), on: .iOS(.v14, .v15, .v16), .tvOS(.v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.progressView(style: .circular), on: .macOS(.v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.progressView(style: .circular), on: .macOS(.v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
ProgressView(value: 0.5)
|
||||
|
@ -33,7 +33,7 @@ final class ProgressViewWithCircularStyleTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.progressView(style: .circular), on: .iOS(.v14, .v15, .v16), .tvOS(.v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.progressView(style: .circular), on: .macOS(.v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.progressView(style: .circular), on: .macOS(.v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
ProgressView(value: 0.75)
|
||||
|
@ -41,7 +41,7 @@ final class ProgressViewWithCircularStyleTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.progressView(style: .circular), on: .iOS(.v14, .v15, .v16), .tvOS(.v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.progressView(style: .circular), on: .macOS(.v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.progressView(style: .circular), on: .macOS(.v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -25,7 +25,7 @@ final class ProgressViewWithLinearStyleTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.progressView(style: .linear), on: .iOS(.v14, .v15, .v16), .tvOS(.v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.progressView(style: .linear), on: .macOS(.v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.progressView(style: .linear), on: .macOS(.v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
ProgressView(value: 0.5)
|
||||
|
@ -33,7 +33,7 @@ final class ProgressViewWithLinearStyleTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.progressView(style: .linear), on: .iOS(.v14, .v15, .v16), .tvOS(.v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.progressView(style: .linear), on: .macOS(.v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.progressView(style: .linear), on: .macOS(.v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
ProgressView(value: 0.75)
|
||||
|
@ -41,7 +41,7 @@ final class ProgressViewWithLinearStyleTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.progressView(style: .linear), on: .iOS(.v14, .v15, .v16), .tvOS(.v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.progressView(style: .linear), on: .macOS(.v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.progressView(style: .linear), on: .macOS(.v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -21,7 +21,7 @@ final class ScrollViewTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.scrollView, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
ScrollView(showsIndicators: true) {
|
||||
|
@ -29,7 +29,7 @@ final class ScrollViewTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.scrollView, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), scope: .ancestor, customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13), scope: .ancestor, customize: spy1)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor, customize: spy1)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -63,13 +63,13 @@ final class ScrollViewTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.scrollView, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
}
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.scrollView, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
} extraAssertions: {
|
||||
#if canImport(UIKit)
|
||||
|
@ -99,7 +99,7 @@ final class ScrollViewTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.scrollView, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.clipped()
|
||||
.clipShape(RoundedRectangle(cornerRadius: 20.0))
|
||||
|
@ -110,7 +110,7 @@ final class ScrollViewTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.scrollView, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), scope: .ancestor, customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13), scope: .ancestor, customize: spy1)
|
||||
.introspect(.scrollView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor, customize: spy1)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ final class SliderTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.slider, on: .iOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -29,7 +29,7 @@ final class SliderTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.slider, on: .iOS(.v13, .v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -37,7 +37,7 @@ final class SliderTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.slider, on: .iOS(.v13, .v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.slider, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -21,7 +21,7 @@ final class StepperTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.stepper, on: .iOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -29,7 +29,7 @@ final class StepperTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.stepper, on: .iOS(.v13, .v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -37,7 +37,7 @@ final class StepperTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.stepper, on: .iOS(.v13, .v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.stepper, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -23,7 +23,7 @@ final class TabViewTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.tabView, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy)
|
||||
#elseif os(macOS)
|
||||
.introspect(.tabView, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy)
|
||||
.introspect(.tabView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ final class TabViewTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.tabView, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), scope: .ancestor, customize: spy)
|
||||
#elseif os(macOS)
|
||||
.introspect(.tabView, on: .macOS(.v10_15, .v11, .v12, .v13), scope: .ancestor, customize: spy)
|
||||
.introspect(.tabView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor, customize: spy)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,23 +24,23 @@ final class TableTests: XCTestCase {
|
|||
VStack {
|
||||
TipTable()
|
||||
#if os(iOS)
|
||||
.introspect(.table, on: .iOS(.v16), customize: spy0)
|
||||
.introspect(.table, on: .iOS(.v16, .v17), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.table, on: .macOS(.v12, .v13), customize: spy0)
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
TipTable()
|
||||
#if os(iOS)
|
||||
.introspect(.table, on: .iOS(.v16), customize: spy1)
|
||||
.introspect(.table, on: .iOS(.v16, .v17), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.table, on: .macOS(.v12, .v13), customize: spy1)
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
TipTable()
|
||||
#if os(iOS)
|
||||
.introspect(.table, on: .iOS(.v16), customize: spy2)
|
||||
.introspect(.table, on: .iOS(.v16, .v17), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.table, on: .macOS(.v12, .v13), customize: spy2)
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -60,25 +60,25 @@ final class TableTests: XCTestCase {
|
|||
TipTable()
|
||||
.tableStyle(.inset)
|
||||
#if os(iOS)
|
||||
.introspect(.table, on: .iOS(.v16), customize: spy0)
|
||||
.introspect(.table, on: .iOS(.v16, .v17), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.table, on: .macOS(.v12, .v13), customize: spy0)
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
TipTable()
|
||||
.tableStyle(.inset)
|
||||
#if os(iOS)
|
||||
.introspect(.table, on: .iOS(.v16), customize: spy1)
|
||||
.introspect(.table, on: .iOS(.v16, .v17), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.table, on: .macOS(.v12, .v13), customize: spy1)
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
TipTable()
|
||||
.tableStyle(.inset)
|
||||
#if os(iOS)
|
||||
.introspect(.table, on: .iOS(.v16), customize: spy2)
|
||||
.introspect(.table, on: .iOS(.v16, .v17), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.table, on: .macOS(.v12, .v13), customize: spy2)
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -99,19 +99,19 @@ final class TableTests: XCTestCase {
|
|||
TipTable()
|
||||
.tableStyle(.bordered)
|
||||
#if os(macOS)
|
||||
.introspect(.table, on: .macOS(.v12, .v13), customize: spy0)
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
TipTable()
|
||||
.tableStyle(.bordered)
|
||||
#if os(macOS)
|
||||
.introspect(.table, on: .macOS(.v12, .v13), customize: spy1)
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
TipTable()
|
||||
.tableStyle(.bordered)
|
||||
#if os(macOS)
|
||||
.introspect(.table, on: .macOS(.v12, .v13), customize: spy2)
|
||||
.introspect(.table, on: .macOS(.v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ final class TextEditorTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.textEditor, on: .iOS(.v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textEditor, on: .macOS(.v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.textEditor, on: .macOS(.v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -34,7 +34,7 @@ final class TextEditorTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.textEditor, on: .iOS(.v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textEditor, on: .macOS(.v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.textEditor, on: .macOS(.v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -42,7 +42,7 @@ final class TextEditorTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.textEditor, on: .iOS(.v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textEditor, on: .macOS(.v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.textEditor, on: .macOS(.v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -20,7 +20,7 @@ final class TextFieldTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.textField, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -28,7 +28,7 @@ final class TextFieldTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.textField, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
|
||||
|
@ -36,7 +36,7 @@ final class TextFieldTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.textField, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
@ -63,21 +63,21 @@ final class TextFieldTests: XCTestCase {
|
|||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.textField, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
TextField("", text: .constant("Text Field 1"))
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.textField, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
TextField("", text: .constant("Text Field 2"))
|
||||
#if os(iOS) || os(tvOS)
|
||||
.introspect(.textField, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.textField, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -26,9 +26,9 @@ final class TextFieldWithVerticalAxisTests: XCTestCase {
|
|||
VStack {
|
||||
TextField("", text: .constant("Text Field 1"), axis: .vertical)
|
||||
#if os(iOS)
|
||||
.introspect(.textField(axis: .vertical), on: .iOS(.v16), customize: spy0)
|
||||
.introspect(.textField(axis: .vertical), on: .iOS(.v16, .v17), customize: spy0)
|
||||
#elseif os(tvOS)
|
||||
.introspect(.textField(axis: .vertical), on: .tvOS(.v16), customize: spy0)
|
||||
.introspect(.textField(axis: .vertical), on: .tvOS(.v16, .v17), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField(axis: .vertical), on: .macOS(.v13), customize: spy0)
|
||||
#endif
|
||||
|
@ -36,9 +36,9 @@ final class TextFieldWithVerticalAxisTests: XCTestCase {
|
|||
|
||||
TextField("", text: .constant("Text Field 2"), axis: .vertical)
|
||||
#if os(iOS)
|
||||
.introspect(.textField(axis: .vertical), on: .iOS(.v16), customize: spy1)
|
||||
.introspect(.textField(axis: .vertical), on: .iOS(.v16, .v17), customize: spy1)
|
||||
#elseif os(tvOS)
|
||||
.introspect(.textField(axis: .vertical), on: .tvOS(.v16), customize: spy1)
|
||||
.introspect(.textField(axis: .vertical), on: .tvOS(.v16, .v17), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField(axis: .vertical), on: .macOS(.v13), customize: spy1)
|
||||
#endif
|
||||
|
@ -46,9 +46,9 @@ final class TextFieldWithVerticalAxisTests: XCTestCase {
|
|||
|
||||
TextField("", text: .constant("Text Field 3"), axis: .vertical)
|
||||
#if os(iOS)
|
||||
.introspect(.textField(axis: .vertical), on: .iOS(.v16), customize: spy2)
|
||||
.introspect(.textField(axis: .vertical), on: .iOS(.v16, .v17), customize: spy2)
|
||||
#elseif os(tvOS)
|
||||
.introspect(.textField(axis: .vertical), on: .tvOS(.v16), customize: spy2)
|
||||
.introspect(.textField(axis: .vertical), on: .tvOS(.v16, .v17), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.textField(axis: .vertical), on: .macOS(.v13), customize: spy2)
|
||||
#endif
|
||||
|
|
|
@ -21,21 +21,21 @@ final class ToggleTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.toggle, on: .iOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
Toggle("", isOn: .constant(false))
|
||||
#if os(iOS)
|
||||
.introspect(.toggle, on: .iOS(.v13, .v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
Toggle("", isOn: .constant(true))
|
||||
#if os(iOS)
|
||||
.introspect(.toggle, on: .iOS(.v13, .v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.toggle, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -23,19 +23,19 @@ final class ToggleWithButtonStyleTests: XCTestCase {
|
|||
Toggle("", isOn: .constant(true))
|
||||
.toggleStyle(.button)
|
||||
#if os(macOS)
|
||||
.introspect(.toggle(style: .button), on: .macOS(.v12, .v13), customize: spy0)
|
||||
.introspect(.toggle(style: .button), on: .macOS(.v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
Toggle("", isOn: .constant(false))
|
||||
.toggleStyle(.button)
|
||||
#if os(macOS)
|
||||
.introspect(.toggle(style: .button), on: .macOS(.v12, .v13), customize: spy1)
|
||||
.introspect(.toggle(style: .button), on: .macOS(.v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
Toggle("", isOn: .constant(true))
|
||||
.toggleStyle(.button)
|
||||
#if os(macOS)
|
||||
.introspect(.toggle(style: .button), on: .macOS(.v12, .v13), customize: spy2)
|
||||
.introspect(.toggle(style: .button), on: .macOS(.v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -18,19 +18,19 @@ final class ToggleWithCheckboxStyleTests: XCTestCase {
|
|||
Toggle("", isOn: .constant(true))
|
||||
.toggleStyle(.checkbox)
|
||||
#if os(macOS)
|
||||
.introspect(.toggle(style: .checkbox), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.toggle(style: .checkbox), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
Toggle("", isOn: .constant(false))
|
||||
.toggleStyle(.checkbox)
|
||||
#if os(macOS)
|
||||
.introspect(.toggle(style: .checkbox), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.toggle(style: .checkbox), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
Toggle("", isOn: .constant(true))
|
||||
.toggleStyle(.checkbox)
|
||||
#if os(macOS)
|
||||
.introspect(.toggle(style: .checkbox), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.toggle(style: .checkbox), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -22,7 +22,7 @@ final class ToggleWithSwitchStyleTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.toggle(style: .switch), on: .iOS(.v13, .v14, .v15, .v16), customize: spy0)
|
||||
#elseif os(macOS)
|
||||
.introspect(.toggle(style: .switch), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy0)
|
||||
.introspect(.toggle(style: .switch), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy0)
|
||||
#endif
|
||||
|
||||
Toggle("", isOn: .constant(false))
|
||||
|
@ -30,7 +30,7 @@ final class ToggleWithSwitchStyleTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.toggle(style: .switch), on: .iOS(.v13, .v14, .v15, .v16), customize: spy1)
|
||||
#elseif os(macOS)
|
||||
.introspect(.toggle(style: .switch), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy1)
|
||||
.introspect(.toggle(style: .switch), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy1)
|
||||
#endif
|
||||
|
||||
Toggle("", isOn: .constant(true))
|
||||
|
@ -38,7 +38,7 @@ final class ToggleWithSwitchStyleTests: XCTestCase {
|
|||
#if os(iOS)
|
||||
.introspect(.toggle(style: .switch), on: .iOS(.v13, .v14, .v15, .v16), customize: spy2)
|
||||
#elseif os(macOS)
|
||||
.introspect(.toggle(style: .switch), on: .macOS(.v10_15, .v11, .v12, .v13), customize: spy2)
|
||||
.introspect(.toggle(style: .switch), on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy2)
|
||||
#endif
|
||||
}
|
||||
} extraAssertions: {
|
||||
|
|
|
@ -112,7 +112,7 @@ List {
|
|||
tableView.backgroundView = UIView()
|
||||
tableView.backgroundColor = .cyan
|
||||
}
|
||||
.introspect(.list, on: .iOS(.v16)) { collectionView in
|
||||
.introspect(.list, on: .iOS(.v16, .v17)) { collectionView in
|
||||
collectionView.backgroundView = UIView()
|
||||
collectionView.subviews.dropFirst(1).first?.backgroundColor = .cyan
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue