I am asked to removed the arrow of the popover view.
For Swift
popoverMenuViewController?.permittedArrowDirections = UIPopoverArrowDirection(rawValue:0)
Just to add some sugar and Swifty the code :
Extension:
extension UIPopoverArrowDirection {
static var none: UIPopoverArrowDirection { UIPopoverArrowDirection(rawValue: 0) }
}
Usage:
popoverMenuViewController?.permittedArrowDirections = .none
you can change the variable's name to fits your needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With