I already use the popover that opens through a "follow" and I wish I could set the dimensions (height and width) of this popover so it would not completely cover the viewcontroller that opened it. I use the following statements in the viewcontroller:
performSegue(withIdentifier: "callDriverPopupSegue", sender: self)
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "callDriverPopSegue" {
let popOver = segue.destination as! CallDriverPopup
popOver.modalPresentationStyle = .popover
popOver.popoverPresentationController!.delegate = self
}
}
And in the popover I included the UIPopoverPresentationControllerDelegate:
class CallDriverPopup: UIViewController, UIPopoverPresentationControllerDelegate