I was trying to integrate Apple's ARKit example app into my app. As ARKit is only an additional feature, so I need to support lower versions of iOS. I added @available(iOS 11.0, *) tag to all the ARKit example app classes...It almost works except this 1 error: "Overriding 'prepare' must be as available as declaration it overrides". Any idea how can I resolve this issue ?
Xcode error image
Move :
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
//...
}
to the ViewController
file directly.
It is independent of the UIPopoverPresentationControllerDelegate
protocol.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With