I am trying to use UIPopoverPresentationController
to display a popover
that doesn\'t take up the whole screen. I\'ve followed many different tutor
For Swift3/IOS10, looks like we need to do some thing like
func adaptivePresentationStyle(for controller: UIPresentationController, traitCollection: UITraitCollection) -> UIModalPresentationStyle
{
return .none
}
Adding this answer, in case, someone runs into this problem as i did when migrating to swift3/IOS10