0
I already use the Popover that is opened through a "follow" and I would like you to define the dimensions (height and width) of this Popover so that it does not completely cover the viewcontroller that opened it. I use the following instructions in 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 Popover included the Uipopoverpresentationcontrollerdelegate:
class CallDriverPopup: UIViewController, UIPopoverPresentationControllerDelegate