Is there any solution to remove arrow in popover for macOS?
I'm using SwiftUI to make macOS app.
However, I need a popover which has no arrow.
But, in macOS target project, there is no way to remove arrow from popover.
I'm using SwiftUI to make macOS app.
However, I need a popover which has no arrow.
But, in macOS target project, there is no way to remove arrow from popover.
Code Block Button(action: {}) { Text("Button") }.popover(isPresented: .constant(true), content: { Text("Popover") })
A popover without an arrow is possible in UIKit, but not in SwiftUI.
You are using:
...which is all that SwiftUI provides.
There is no option to hide/remove the arrow, and the "attachmentAnchor" and "arrowEdge" parameters cannot be used to achieve this.
You could investigate wrapping a UIKit solution in a SwiftUI representable view.
You are using:
Code Block func popover<Content>( isPresented: Binding<Bool>, attachmentAnchor: PopoverAttachmentAnchor = .rect(.bounds), arrowEdge: Edge = .top, content: @escaping () -> Content ) -> some View where Content : View
...which is all that SwiftUI provides.
There is no option to hide/remove the arrow, and the "attachmentAnchor" and "arrowEdge" parameters cannot be used to achieve this.
You could investigate wrapping a UIKit solution in a SwiftUI representable view.