Add iOS 18 to the Introspect supported versions. (#3248)

This commit is contained in:
Doug
2024-09-10 13:24:17 +01:00
committed by GitHub
parent c8cb65c92b
commit 539452394e
4 changed files with 13 additions and 20 deletions
@@ -5,30 +5,23 @@
// Please see LICENSE in the repository root for full details.
//
import UIKit
import SwiftUI
import SwiftUIIntrospect
extension PlatformViewVersionPredicate<WindowType, UIWindow> {
static var supportedVersions: Self {
.iOS(.v16, .v17)
}
}
extension PlatformViewVersionPredicate<TextFieldType, UITextField> {
static var supportedVersions: Self {
.iOS(.v16, .v17)
.iOS(.v16, .v17, .v18)
}
}
extension PlatformViewVersionPredicate<ScrollViewType, UIScrollView> {
static var supportedVersions: Self {
.iOS(.v16, .v17)
.iOS(.v16, .v17, .v18)
}
}
extension PlatformViewVersionPredicate<ViewControllerType, UIViewController> {
static var supportedVersions: Self {
.iOS(.v16, .v17)
.iOS(.v16, .v17, .v18)
}
}