Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

popover(_:)

A view modifier that maps SwiftUI's popover.

iOS 17.0+macOS 14.0+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.popover(isPresented: Boolean, onIsPresentedChange: (Boolean) -> Unit, attachmentAnchor: PopoverAttachmentAnchor? = null, arrowEdge: Edge? = null, content: @Composable () -> Unit): Modifier

Overview

Modifier.popover(isPresented = true)

This is the Kotlin form of SwiftUI View.popover(isPresented:attachmentAnchor:arrowEdge:content:): SwiftUI documentation. In Swift it reads:

@export(implementation) nonisolated func popover<Content>(isPresented: Binding<Bool>, attachmentAnchor: PopoverAttachmentAnchor = .rect(.bounds), arrowEdge: Edge? = nil, @ContentBuilder content: @escaping () -> Content) -> some View where Content : View

Topics

Overloads

fun Modifier.popover(isPresented: Boolean, onIsPresentedChange: (Boolean) -> Unit, attachmentAnchor: PopoverAttachmentAnchor? = null, arrowEdge: Edge? = null, content: @Composable () -> Unit): Modifier
SwiftUI View.popover(isPresented:attachmentAnchor:arrowEdge:content:)