DanijelHuis / HDAugmentedReality

Augmented Reality component for iOS, written in Swift.
MIT License
480 stars 97 forks source link

Can't compile with Xcode 10.x #86

Open jeromeDms opened 4 years ago

jeromeDms commented 4 years ago

Hi I'm developing on an iMac 2011, unfortunately I cannot install OS higher than High Sierra, thus cannot install Xcode 11, thus cannot run iOS 13. The current code does not compile because of the following :

if #available(iOS 13.0, *)
        {
            self.overrideUserInterfaceStyle = .dark
        }

The solution would be to enclose a #ifdef __IPHONE_13_0 around this, as described here : https://stackoverflow.com/questions/58083310/if-availableios-13-0-doesnt-compile-in-xcode-10-3

If you could add this that would be very cool so I can use your framework. Thanks