UIRefreshControl changes the color of the UIActivityIndicatorView

Is there a way to change the color of the "UIActivityIndicatorView" of the UIRefreshControl?

I did not find anything!

Thank!!

UIRefreshControl

+7
source share
2 answers

You can do this by installing Tint Color UIRefreshControlsomething like this:

Goal c [refreshControl setTintColor:[UIColor blackColor]];

Swift refreshControl.tintColor = UIColor.black

It will also change the arrow that unfolds when sliding.

+20
source

Since the previous answer is deprecated, I thought I would just change it to Swift 4 and share the solution (credit goes to @subharb).

refreshControl.tintColor = UIColor.white

This line of code will change the color of the UIActivityIndicatorView to the color you need :)

+2
source

All Articles