0
votes

I am using a PullToRefresh activity indicator in my app. But somewhere I have used UIActivityIndicatorView, it's size is smaller than PullToRefresh Indicator. Is there any way to get the same size and color as a PullToRefresh indicator? I tried to modify UIActivityIndicatorView but is worthless. Here is my code:

@IBOutlet weak var activityIndicator: UIActivityIndicatorView! {
        didSet {
            if activityIndicator != nil {
                let transform = CGAffineTransform(scaleX: 2.0, y: 0.75)
                activityIndicator.transform = transform
            }
        }
    }

I want output like this

enter image description here

My current view is like this

enter image description here

1

1 Answers

0
votes

Try applying size property to .whiteLarge

activityIndicator.size = .whiteLarge

You can change the color according to your need by setting the tintColor property.

appledoc