FullScreenCoverType
@MainActor
public struct FullScreenCoverType : IntrospectableViewType
An abstract representation of .fullScreenCover
in SwiftUI.
public struct ContentView: View {
@State var isPresented = false
public var body: some View {
Button("Present", action: { isPresented = true })
.fullScreenCover(isPresented: $isPresented) {
Button("Dismiss", action: { isPresented = false })
.introspect(.fullScreenCover, on: .iOS(.v14Later)) {
print(type(of: $0)) // UIPresentationController
}
}
}
}
-
Declaration
Swift
@MainActor public var scope: IntrospectionScope { get }