How to resolve Large Style before iOS 13.0 warning?

I have the following warning in my application and have no idea how to resolve it. Any ideas?


Large Style before iOS 13.0


Googling around did not provide much insight, however, it seems to be related to the Activity Indicator object I am using on my ViewController, which has it's property set to "Large".


Note: If I seet the property to "Medium" then I get a warning called "Medium Style before iOS 13.0" instead

Answered by OOPer in 412067022

Set your project's iOS Deployment Target to iOS 13.0 (or later).


If you cannot do that, choose one of the deprecated styles on the storyboad and set Large style programmatically:

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        //...
        if #available(iOS 13.0, *) {
            activityIndicator.style = .large
        } else {
            activityIndicator.style = .whiteLarge
        }
    }
Accepted Answer

Set your project's iOS Deployment Target to iOS 13.0 (or later).


If you cannot do that, choose one of the deprecated styles on the storyboad and set Large style programmatically:

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        //...
        if #available(iOS 13.0, *) {
            activityIndicator.style = .large
        } else {
            activityIndicator.style = .whiteLarge
        }
    }

Perfect, thanks !

How to resolve Large Style before iOS 13.0 warning?
 
 
Q