PopoverType

@MainActor
public struct PopoverType : IntrospectableViewType

An abstract representation of .popover in SwiftUI.

public struct ContentView: View {
    @State var isPresented = false

    public var body: some View {
        Button("Present", action: { isPresented = true })
            .popover(isPresented: $isPresented) {
                Button("Dismiss", action: { isPresented = false })
                    .introspect(.popover, on: .iOS(.all)) {
                        print(type(of: $0)) // UIPopoverPresentationController
                    }
            }
    }
}