view raw
Travis M. Travis M. - 9 months ago 76
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


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

popoverController.permittedArrowDirections = [.Up, .Down]