Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ARSCNView before iOS 11.0 [duplicate]

I'm trying to add ARKit to one of my existing apps, and I'm making that transition to the view when you click a button. I made the button only available if you have iOS 11 so you'll only be able to go to that view with iOS 11, but how do I get rid of this error for the Storyboard?

Class Unavailable ARSCNView before iOS 11.0

Thanks!

like image 682
Amit Kalra Avatar asked Nov 10 '17 21:11

Amit Kalra


1 Answers

I guess this answers your question

Not creating ARSCNView in a storyboard, but initializing one and adding it to your view controller's root view in code.

Replacement for ARKit in iOS10

Or you can go to your XIB view and make it Builds for iOS 11 or Later. Builds for iOS 11 or Later

like image 62
iTarek Avatar answered Jan 04 '23 00:01

iTarek