Travis M. Travis M. - 4 months ago 22
Swift Question

Set Multiple Arrow Directions on UIPopoverController in Swift

What is the syntax to set multiple arrow directions for a UIPopoverController in Swift?

Something like this:

popoverController.permittedArrowDirections = .Up | .Down

Answer

I believe in swift the syntax you're looking for is:

popoverController.permittedArrowDirections = [.Up, .Down]