1

I am developing an hybrid application in javascript for iOS. And I don't have access to the underlying framework, which shows the UIActivityIndicatorView. I want to change the colour of the indicator either programmatically or setting some properties.

PS: I could do this in Android by setting themes. Hoping for a similar way, as I am new to iOS development.

1 Answer 1

1

You may set the colors globally via UIAppearance, e. g.:

[[UIActivityIndicatorView appearance] setColor:[UIColor red]];

or the same in Swift 4:

UIActivityIndicatorView.appearance().color = .red
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.