Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
davdroman committed Jul 16, 2024
1 parent aabc46b commit b297a61
Show file tree
Hide file tree
Showing 44 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ColorPickerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwiftUIIntrospect
import XCTest

@available(iOS 14, macOS 11, *)
@MainActor
final class ColorPickerTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformColor = UIColor
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/DatePickerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class DatePickerTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformDatePicker = UIDatePicker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwiftUIIntrospect
import XCTest

@available(iOS 14, *)
@MainActor
final class DatePickerWithGraphicalStyleTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformDatePickerWithGraphicalStyle = UIDatePicker
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/DatePickerWithWheelStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class DatePickerWithWheelStyleTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformDatePickerWithWheelStyle = UIDatePicker
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/FormTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/FormWithGroupedStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/FullScreenCoverTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ListCellTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ListTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ListWithGroupedStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ListWithInsetGroupedStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ListWithInsetStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ListWithPlainStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ListWithSidebarStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/MapTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import SwiftUIIntrospect
import XCTest

@available(iOS 14, tvOS 14, macOS 11, *)
@MainActor
final class MapTests: XCTestCase {
typealias PlatformMap = MKMapView

Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/NavigationSplitViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Check warning on line 8 in Tests/Tests/ViewTypes/NavigationSplitViewTests.swift

View workflow job for this annotation

GitHub Actions / macOS 12

unknown operating system for build configuration 'os'
typealias PlatformNavigationSplitView = UISplitViewController
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/NavigationStackTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwiftUIIntrospect
import XCTest

@available(iOS 16, tvOS 16, *)
@MainActor
final class NavigationStackTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformNavigationStack = UINavigationController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class NavigationViewWithStackStyleTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformNavigationViewWithStackStyle = UINavigationController
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/PageControlTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwiftUIIntrospect
import XCTest

@available(iOS 14, tvOS 14, *)
@MainActor
final class PageControlTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformPageControl = UIPageControl
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/PickerWithSegmentedStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class PickerWithSegmentedStyleTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformPickerWithSegmentedStyle = UISegmentedControl
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/PickerWithWheelStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class PickerWithWheelStyleTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformPickerWithWheelStyle = UIPickerView
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/PopoverTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class PopoverTests: XCTestCase {
func testPopover() throws {
XCTAssertViewIntrospection(of: UIPopoverPresentationController.self) { spies in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class ProgressViewWithCircularStyleTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformProgressViewWithCircularStyle = UIActivityIndicatorView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class ProgressViewWithLinearStyleTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformProgressViewWithLinearStyle = UIProgressView
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ScrollViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class ScrollViewTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformScrollView = UIScrollView
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/SearchFieldTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwiftUIIntrospect
import XCTest

@available(iOS 15, tvOS 15, *)
@MainActor
final class SearchFieldTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformSearchField = UISearchBar
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/SecureFieldTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class SecureFieldTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformSecureField = UITextField
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/SheetTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class SheetTests: XCTestCase {
#if os(iOS)
func testSheet() throws {
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/SliderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class SliderTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformSlider = UISlider
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/StepperTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class StepperTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformStepper = UIStepper
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/TabViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class TabViewTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformTabView = UITabBarController
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/TabViewWithPageStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwiftUIIntrospect
import XCTest

@available(iOS 14, tvOS 14, *)
@MainActor
final class TabViewWithPageStyleTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformTabViewWithPageStyle = UICollectionView
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/TableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwiftUIIntrospect
import XCTest

@available(iOS 16, macOS 12, *)
@MainActor
final class TableTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformTable = UICollectionView
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/TextEditorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwiftUIIntrospect
import XCTest

@available(iOS 14, macOS 11, *)
@MainActor
final class TextEditorTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformTextEditor = UITextView
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/TextFieldTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class TextFieldTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformTextField = UITextField
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Check warning on line 8 in Tests/Tests/ViewTypes/TextFieldWithVerticalAxisTests.swift

View workflow job for this annotation

GitHub Actions / macOS 12

unknown operating system for build configuration 'os'
typealias PlatformTextField = UITextView
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ToggleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class ToggleTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformToggle = UISwitch
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ToggleWithSwitchStyleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class ToggleWithSwitchStyleTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformToggleWithSwitchStyle = UISwitch
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/VideoPlayerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ViewControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class ViewControllerTests: XCTestCase {
func testViewController() {
XCTAssertViewIntrospection(of: PlatformViewController.self) { spies in
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/ViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class ViewTests: XCTestCase {
func testView() {
XCTAssertViewIntrospection(of: PlatformView.self) { spies in
Expand Down
1 change: 1 addition & 0 deletions Tests/Tests/ViewTypes/WindowTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SwiftUI
import SwiftUIIntrospect
import XCTest

@MainActor
final class WindowTests: XCTestCase {
#if canImport(UIKit)
typealias PlatformWindow = UIWindow
Expand Down

0 comments on commit b297a61

Please sign in to comment.