Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swiftui popover

struct ContentView: View {
    @State private var showingPopover = false
    var body: some View {
        Button("Show Menu") {
            showingPopover = true
        }
        .popover(isPresented: $showingPopover) {  // <-------
            Text("Your content here")
        }
    }
}
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #swiftui #popover
ADD COMMENT
Topic
Name
6+8 =