From b297a61131a92ee42c19de916c4a7fd4a8a20a6e Mon Sep 17 00:00:00 2001 From: David Roman <2538074+davdroman@users.noreply.github.com> Date: Tue, 16 Jul 2024 22:37:47 +0100 Subject: [PATCH] WIP --- Tests/Tests/ViewTypes/ColorPickerTests.swift | 1 + Tests/Tests/ViewTypes/DatePickerTests.swift | 1 + Tests/Tests/ViewTypes/DatePickerWithCompactFieldStyleTests.swift | 1 + Tests/Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift | 1 + Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift | 1 + Tests/Tests/ViewTypes/FormTests.swift | 1 + Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift | 1 + Tests/Tests/ViewTypes/FullScreenCoverTests.swift | 1 + Tests/Tests/ViewTypes/ListCellTests.swift | 1 + Tests/Tests/ViewTypes/ListTests.swift | 1 + Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift | 1 + Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift | 1 + Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift | 1 + Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift | 1 + Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift | 1 + Tests/Tests/ViewTypes/MapTests.swift | 1 + Tests/Tests/ViewTypes/NavigationSplitViewTests.swift | 1 + Tests/Tests/ViewTypes/NavigationStackTests.swift | 1 + Tests/Tests/ViewTypes/NavigationViewWithColumnsStyleTests.swift | 1 + Tests/Tests/ViewTypes/NavigationViewWithStackStyleTests.swift | 1 + Tests/Tests/ViewTypes/PageControlTests.swift | 1 + Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift | 1 + Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift | 1 + Tests/Tests/ViewTypes/PopoverTests.swift | 1 + Tests/Tests/ViewTypes/ProgressViewWithCircularStyleTests.swift | 1 + Tests/Tests/ViewTypes/ProgressViewWithLinearStyleTests.swift | 1 + Tests/Tests/ViewTypes/ScrollViewTests.swift | 1 + Tests/Tests/ViewTypes/SearchFieldTests.swift | 1 + Tests/Tests/ViewTypes/SecureFieldTests.swift | 1 + Tests/Tests/ViewTypes/SheetTests.swift | 1 + Tests/Tests/ViewTypes/SliderTests.swift | 1 + Tests/Tests/ViewTypes/StepperTests.swift | 1 + Tests/Tests/ViewTypes/TabViewTests.swift | 1 + Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift | 1 + Tests/Tests/ViewTypes/TableTests.swift | 1 + Tests/Tests/ViewTypes/TextEditorTests.swift | 1 + Tests/Tests/ViewTypes/TextFieldTests.swift | 1 + Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift | 1 + Tests/Tests/ViewTypes/ToggleTests.swift | 1 + Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift | 1 + Tests/Tests/ViewTypes/VideoPlayerTests.swift | 1 + Tests/Tests/ViewTypes/ViewControllerTests.swift | 1 + Tests/Tests/ViewTypes/ViewTests.swift | 1 + Tests/Tests/ViewTypes/WindowTests.swift | 1 + 44 files changed, 44 insertions(+) diff --git a/Tests/Tests/ViewTypes/ColorPickerTests.swift b/Tests/Tests/ViewTypes/ColorPickerTests.swift index 25375eb6..f61bd4b9 100644 --- a/Tests/Tests/ViewTypes/ColorPickerTests.swift +++ b/Tests/Tests/ViewTypes/ColorPickerTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, macOS 11, *) +@MainActor final class ColorPickerTests: XCTestCase { #if canImport(UIKit) typealias PlatformColor = UIColor diff --git a/Tests/Tests/ViewTypes/DatePickerTests.swift b/Tests/Tests/ViewTypes/DatePickerTests.swift index f105cd72..1cdaf623 100644 --- a/Tests/Tests/ViewTypes/DatePickerTests.swift +++ b/Tests/Tests/ViewTypes/DatePickerTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class DatePickerTests: XCTestCase { #if canImport(UIKit) typealias PlatformDatePicker = UIDatePicker diff --git a/Tests/Tests/ViewTypes/DatePickerWithCompactFieldStyleTests.swift b/Tests/Tests/ViewTypes/DatePickerWithCompactFieldStyleTests.swift index 6ac88b55..3698f84b 100644 --- a/Tests/Tests/ViewTypes/DatePickerWithCompactFieldStyleTests.swift +++ b/Tests/Tests/ViewTypes/DatePickerWithCompactFieldStyleTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, macOS 10.15.4, *) +@MainActor final class DatePickerWithCompactStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformDatePickerWithCompactStyle = UIDatePicker diff --git a/Tests/Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift b/Tests/Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift index c4a4fbc3..8aa62db4 100644 --- a/Tests/Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift +++ b/Tests/Tests/ViewTypes/DatePickerWithGraphicalStyleTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, *) +@MainActor final class DatePickerWithGraphicalStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformDatePickerWithGraphicalStyle = UIDatePicker diff --git a/Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift b/Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift index 1f9df82a..ac1256f2 100644 --- a/Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift +++ b/Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class DatePickerWithWheelStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformDatePickerWithWheelStyle = UIDatePicker diff --git a/Tests/Tests/ViewTypes/FormTests.swift b/Tests/Tests/ViewTypes/FormTests.swift index b6b5d852..c6125c8b 100644 --- a/Tests/Tests/ViewTypes/FormTests.swift +++ b/Tests/Tests/ViewTypes/FormTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class FormTests: XCTestCase { #if canImport(UIKit) typealias PlatformForm = UIScrollView // covers both UITableView and UICollectionView diff --git a/Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift b/Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift index 90df9208..d6fdef3b 100644 --- a/Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift +++ b/Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift @@ -3,6 +3,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 16, tvOS 16, macOS 13, *) +@MainActor final class FormWithGroupedStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformFormWithGroupedStyle = UIScrollView // covers both UITableView and UICollectionView diff --git a/Tests/Tests/ViewTypes/FullScreenCoverTests.swift b/Tests/Tests/ViewTypes/FullScreenCoverTests.swift index d5a2e675..66944199 100644 --- a/Tests/Tests/ViewTypes/FullScreenCoverTests.swift +++ b/Tests/Tests/ViewTypes/FullScreenCoverTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, tvOS 14, *) +@MainActor final class FullScreenCoverTests: XCTestCase { func testPresentationAsFullScreenCover() throws { guard #available(iOS 14, tvOS 14, *) else { diff --git a/Tests/Tests/ViewTypes/ListCellTests.swift b/Tests/Tests/ViewTypes/ListCellTests.swift index d6882abf..2d4b65a9 100644 --- a/Tests/Tests/ViewTypes/ListCellTests.swift +++ b/Tests/Tests/ViewTypes/ListCellTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ListCellTests: XCTestCase { #if canImport(UIKit) typealias PlatformListCell = UIView // covers both UITableViewCell and UICollectionViewCell diff --git a/Tests/Tests/ViewTypes/ListTests.swift b/Tests/Tests/ViewTypes/ListTests.swift index 1b8da8f0..fe722b93 100644 --- a/Tests/Tests/ViewTypes/ListTests.swift +++ b/Tests/Tests/ViewTypes/ListTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ListTests: XCTestCase { #if canImport(UIKit) typealias PlatformList = UIScrollView // covers both UITableView and UICollectionView diff --git a/Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift b/Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift index 16793db8..5949ee45 100644 --- a/Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ListWithGroupedStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformListWithGroupedStyle = UIScrollView // covers both UITableView and UICollectionView diff --git a/Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift b/Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift index 23a539fa..12f6cd8f 100644 --- a/Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, *) +@MainActor final class ListWithInsetGroupedStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformListWithInsetGroupedStyle = UIScrollView // covers both UITableView and UICollectionView diff --git a/Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift b/Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift index 86e1746a..db88d126 100644 --- a/Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, macOS 11, *) +@MainActor final class ListWithInsetStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformListWithInsetStyle = UIScrollView // covers both UITableView and UICollectionView diff --git a/Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift b/Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift index 115a5a34..1ad621f3 100644 --- a/Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ListWithPlainStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformListWithPlainStyle = UIScrollView // covers both UITableView and UICollectionView diff --git a/Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift b/Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift index c45d456f..43de00ef 100644 --- a/Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift +++ b/Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, macOS 10.15, *) +@MainActor final class ListWithSidebarStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformListWithSidebarStyle = UIScrollView // covers both UITableView and UICollectionView diff --git a/Tests/Tests/ViewTypes/MapTests.swift b/Tests/Tests/ViewTypes/MapTests.swift index 2199b4cd..27032671 100644 --- a/Tests/Tests/ViewTypes/MapTests.swift +++ b/Tests/Tests/ViewTypes/MapTests.swift @@ -5,6 +5,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, tvOS 14, macOS 11, *) +@MainActor final class MapTests: XCTestCase { typealias PlatformMap = MKMapView diff --git a/Tests/Tests/ViewTypes/NavigationSplitViewTests.swift b/Tests/Tests/ViewTypes/NavigationSplitViewTests.swift index ac619ab0..391ebe9d 100644 --- a/Tests/Tests/ViewTypes/NavigationSplitViewTests.swift +++ b/Tests/Tests/ViewTypes/NavigationSplitViewTests.swift @@ -3,6 +3,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 16, tvOS 16, macOS 13, *) +@MainActor final class NavigationSplitViewTests: XCTestCase { #if canImport(UIKit) && (os(iOS) || os(visionOS)) typealias PlatformNavigationSplitView = UISplitViewController diff --git a/Tests/Tests/ViewTypes/NavigationStackTests.swift b/Tests/Tests/ViewTypes/NavigationStackTests.swift index 579a6a0b..9ed4ac0c 100644 --- a/Tests/Tests/ViewTypes/NavigationStackTests.swift +++ b/Tests/Tests/ViewTypes/NavigationStackTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 16, tvOS 16, *) +@MainActor final class NavigationStackTests: XCTestCase { #if canImport(UIKit) typealias PlatformNavigationStack = UINavigationController diff --git a/Tests/Tests/ViewTypes/NavigationViewWithColumnsStyleTests.swift b/Tests/Tests/ViewTypes/NavigationViewWithColumnsStyleTests.swift index a54edd7e..4a1ae555 100644 --- a/Tests/Tests/ViewTypes/NavigationViewWithColumnsStyleTests.swift +++ b/Tests/Tests/ViewTypes/NavigationViewWithColumnsStyleTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class NavigationViewWithColumnsStyleTests: XCTestCase { #if canImport(UIKit) && (os(iOS) || os(visionOS)) typealias PlatformNavigationViewWithColumnsStyle = UISplitViewController diff --git a/Tests/Tests/ViewTypes/NavigationViewWithStackStyleTests.swift b/Tests/Tests/ViewTypes/NavigationViewWithStackStyleTests.swift index 36e2849b..95ad9133 100644 --- a/Tests/Tests/ViewTypes/NavigationViewWithStackStyleTests.swift +++ b/Tests/Tests/ViewTypes/NavigationViewWithStackStyleTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class NavigationViewWithStackStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformNavigationViewWithStackStyle = UINavigationController diff --git a/Tests/Tests/ViewTypes/PageControlTests.swift b/Tests/Tests/ViewTypes/PageControlTests.swift index 3ef343e4..2b6aed8b 100644 --- a/Tests/Tests/ViewTypes/PageControlTests.swift +++ b/Tests/Tests/ViewTypes/PageControlTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, tvOS 14, *) +@MainActor final class PageControlTests: XCTestCase { #if canImport(UIKit) typealias PlatformPageControl = UIPageControl diff --git a/Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift b/Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift index 54123e4e..109c27d3 100644 --- a/Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift +++ b/Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class PickerWithSegmentedStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformPickerWithSegmentedStyle = UISegmentedControl diff --git a/Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift b/Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift index 8c05558e..10be27b9 100644 --- a/Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift +++ b/Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class PickerWithWheelStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformPickerWithWheelStyle = UIPickerView diff --git a/Tests/Tests/ViewTypes/PopoverTests.swift b/Tests/Tests/ViewTypes/PopoverTests.swift index 7bc52dce..9b31e073 100644 --- a/Tests/Tests/ViewTypes/PopoverTests.swift +++ b/Tests/Tests/ViewTypes/PopoverTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class PopoverTests: XCTestCase { func testPopover() throws { XCTAssertViewIntrospection(of: UIPopoverPresentationController.self) { spies in diff --git a/Tests/Tests/ViewTypes/ProgressViewWithCircularStyleTests.swift b/Tests/Tests/ViewTypes/ProgressViewWithCircularStyleTests.swift index 4234c913..b39448a4 100644 --- a/Tests/Tests/ViewTypes/ProgressViewWithCircularStyleTests.swift +++ b/Tests/Tests/ViewTypes/ProgressViewWithCircularStyleTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ProgressViewWithCircularStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformProgressViewWithCircularStyle = UIActivityIndicatorView diff --git a/Tests/Tests/ViewTypes/ProgressViewWithLinearStyleTests.swift b/Tests/Tests/ViewTypes/ProgressViewWithLinearStyleTests.swift index 9dac3147..d6b889c2 100644 --- a/Tests/Tests/ViewTypes/ProgressViewWithLinearStyleTests.swift +++ b/Tests/Tests/ViewTypes/ProgressViewWithLinearStyleTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ProgressViewWithLinearStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformProgressViewWithLinearStyle = UIProgressView diff --git a/Tests/Tests/ViewTypes/ScrollViewTests.swift b/Tests/Tests/ViewTypes/ScrollViewTests.swift index e5befb54..caa9c6dc 100644 --- a/Tests/Tests/ViewTypes/ScrollViewTests.swift +++ b/Tests/Tests/ViewTypes/ScrollViewTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ScrollViewTests: XCTestCase { #if canImport(UIKit) typealias PlatformScrollView = UIScrollView diff --git a/Tests/Tests/ViewTypes/SearchFieldTests.swift b/Tests/Tests/ViewTypes/SearchFieldTests.swift index bd69fae0..ce197d77 100644 --- a/Tests/Tests/ViewTypes/SearchFieldTests.swift +++ b/Tests/Tests/ViewTypes/SearchFieldTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 15, tvOS 15, *) +@MainActor final class SearchFieldTests: XCTestCase { #if canImport(UIKit) typealias PlatformSearchField = UISearchBar diff --git a/Tests/Tests/ViewTypes/SecureFieldTests.swift b/Tests/Tests/ViewTypes/SecureFieldTests.swift index 042c47de..bc2174d6 100644 --- a/Tests/Tests/ViewTypes/SecureFieldTests.swift +++ b/Tests/Tests/ViewTypes/SecureFieldTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class SecureFieldTests: XCTestCase { #if canImport(UIKit) typealias PlatformSecureField = UITextField diff --git a/Tests/Tests/ViewTypes/SheetTests.swift b/Tests/Tests/ViewTypes/SheetTests.swift index cda888a7..6607f96d 100644 --- a/Tests/Tests/ViewTypes/SheetTests.swift +++ b/Tests/Tests/ViewTypes/SheetTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class SheetTests: XCTestCase { #if os(iOS) func testSheet() throws { diff --git a/Tests/Tests/ViewTypes/SliderTests.swift b/Tests/Tests/ViewTypes/SliderTests.swift index db3200bb..cb2c6e9e 100644 --- a/Tests/Tests/ViewTypes/SliderTests.swift +++ b/Tests/Tests/ViewTypes/SliderTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class SliderTests: XCTestCase { #if canImport(UIKit) typealias PlatformSlider = UISlider diff --git a/Tests/Tests/ViewTypes/StepperTests.swift b/Tests/Tests/ViewTypes/StepperTests.swift index e130f1de..bf36df46 100644 --- a/Tests/Tests/ViewTypes/StepperTests.swift +++ b/Tests/Tests/ViewTypes/StepperTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class StepperTests: XCTestCase { #if canImport(UIKit) typealias PlatformStepper = UIStepper diff --git a/Tests/Tests/ViewTypes/TabViewTests.swift b/Tests/Tests/ViewTypes/TabViewTests.swift index 50b558e2..45b8db7f 100644 --- a/Tests/Tests/ViewTypes/TabViewTests.swift +++ b/Tests/Tests/ViewTypes/TabViewTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class TabViewTests: XCTestCase { #if canImport(UIKit) typealias PlatformTabView = UITabBarController diff --git a/Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift b/Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift index d7bd8791..3506ce46 100644 --- a/Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift +++ b/Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, tvOS 14, *) +@MainActor final class TabViewWithPageStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformTabViewWithPageStyle = UICollectionView diff --git a/Tests/Tests/ViewTypes/TableTests.swift b/Tests/Tests/ViewTypes/TableTests.swift index b30967c8..2c13fe18 100644 --- a/Tests/Tests/ViewTypes/TableTests.swift +++ b/Tests/Tests/ViewTypes/TableTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 16, macOS 12, *) +@MainActor final class TableTests: XCTestCase { #if canImport(UIKit) typealias PlatformTable = UICollectionView diff --git a/Tests/Tests/ViewTypes/TextEditorTests.swift b/Tests/Tests/ViewTypes/TextEditorTests.swift index 6eca638d..17469009 100644 --- a/Tests/Tests/ViewTypes/TextEditorTests.swift +++ b/Tests/Tests/ViewTypes/TextEditorTests.swift @@ -4,6 +4,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, macOS 11, *) +@MainActor final class TextEditorTests: XCTestCase { #if canImport(UIKit) typealias PlatformTextEditor = UITextView diff --git a/Tests/Tests/ViewTypes/TextFieldTests.swift b/Tests/Tests/ViewTypes/TextFieldTests.swift index 0e65c99a..fde6895e 100644 --- a/Tests/Tests/ViewTypes/TextFieldTests.swift +++ b/Tests/Tests/ViewTypes/TextFieldTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class TextFieldTests: XCTestCase { #if canImport(UIKit) typealias PlatformTextField = UITextField diff --git a/Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift b/Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift index f0bad5f5..b124e832 100644 --- a/Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift +++ b/Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift @@ -3,6 +3,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 16, tvOS 16, macOS 13, *) +@MainActor final class TextFieldWithVerticalAxisTests: XCTestCase { #if canImport(UIKit) && (os(iOS) || os(visionOS)) typealias PlatformTextField = UITextView diff --git a/Tests/Tests/ViewTypes/ToggleTests.swift b/Tests/Tests/ViewTypes/ToggleTests.swift index fae82b4e..765d6ebb 100644 --- a/Tests/Tests/ViewTypes/ToggleTests.swift +++ b/Tests/Tests/ViewTypes/ToggleTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ToggleTests: XCTestCase { #if canImport(UIKit) typealias PlatformToggle = UISwitch diff --git a/Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift b/Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift index 8df51c45..6a3b7758 100644 --- a/Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift +++ b/Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ToggleWithSwitchStyleTests: XCTestCase { #if canImport(UIKit) typealias PlatformToggleWithSwitchStyle = UISwitch diff --git a/Tests/Tests/ViewTypes/VideoPlayerTests.swift b/Tests/Tests/ViewTypes/VideoPlayerTests.swift index 9658001e..c7019722 100644 --- a/Tests/Tests/ViewTypes/VideoPlayerTests.swift +++ b/Tests/Tests/ViewTypes/VideoPlayerTests.swift @@ -5,6 +5,7 @@ import SwiftUIIntrospect import XCTest @available(iOS 14, tvOS 14, macOS 11, *) +@MainActor final class VideoPlayerTests: XCTestCase { #if canImport(UIKit) typealias PlatformVideoPlayer = AVPlayerViewController diff --git a/Tests/Tests/ViewTypes/ViewControllerTests.swift b/Tests/Tests/ViewTypes/ViewControllerTests.swift index a0a7993b..0f4d6d31 100644 --- a/Tests/Tests/ViewTypes/ViewControllerTests.swift +++ b/Tests/Tests/ViewTypes/ViewControllerTests.swift @@ -3,6 +3,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ViewControllerTests: XCTestCase { func testViewController() { XCTAssertViewIntrospection(of: PlatformViewController.self) { spies in diff --git a/Tests/Tests/ViewTypes/ViewTests.swift b/Tests/Tests/ViewTypes/ViewTests.swift index 1dcf065e..b7457940 100644 --- a/Tests/Tests/ViewTypes/ViewTests.swift +++ b/Tests/Tests/ViewTypes/ViewTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class ViewTests: XCTestCase { func testView() { XCTAssertViewIntrospection(of: PlatformView.self) { spies in diff --git a/Tests/Tests/ViewTypes/WindowTests.swift b/Tests/Tests/ViewTypes/WindowTests.swift index a6f43ab1..cf474426 100644 --- a/Tests/Tests/ViewTypes/WindowTests.swift +++ b/Tests/Tests/ViewTypes/WindowTests.swift @@ -2,6 +2,7 @@ import SwiftUI import SwiftUIIntrospect import XCTest +@MainActor final class WindowTests: XCTestCase { #if canImport(UIKit) typealias PlatformWindow = UIWindow