skip to Main Content

Xcode – How can I wrap Objective-C code for visionOS only?

I have the following code in Objective-C: if (@available(iOS 13.0, tvOS 13.0, *)) { indicator.indicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleLarge; } else { indicator.indicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge; } But this is producing an error. 'UIActivityIndicatorViewStyleWhiteLarge' is unavailable: not available on xrOS I think I…

VIEW QUESTION
Back To Top
Search