* Embed the media preview quick look inside a full screen cover With a zoom transition on iOS 18. * Use a the representable coordinator properly. * Fix a bug with the toolbar appearance. * Format * Try prevent the zoom transition being upside down. * Fix the snapshot test configuration.
34 lines
800 B
Swift
34 lines
800 B
Swift
//
|
|
// Copyright 2023, 2024 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
// Please see LICENSE in the repository root for full details.
|
|
//
|
|
|
|
import SwiftUI
|
|
import SwiftUIIntrospect
|
|
|
|
extension PlatformViewVersionPredicate<TextFieldType, UITextField> {
|
|
static var supportedVersions: Self {
|
|
.iOS(.v17, .v18)
|
|
}
|
|
}
|
|
|
|
extension PlatformViewVersionPredicate<ScrollViewType, UIScrollView> {
|
|
static var supportedVersions: Self {
|
|
.iOS(.v17, .v18)
|
|
}
|
|
}
|
|
|
|
extension PlatformViewVersionPredicate<ViewControllerType, UIViewController> {
|
|
static var supportedVersions: Self {
|
|
.iOS(.v17, .v18)
|
|
}
|
|
}
|
|
|
|
extension PlatformViewVersionPredicate<NavigationStackType, UINavigationController> {
|
|
static var supportedVersions: Self {
|
|
.iOS(.v17, .v18)
|
|
}
|
|
}
|