STPPaymentActivityIndicatorView
public class STPPaymentActivityIndicatorView : UIView
This class can be used wherever you’d use a UIActivityIndicatorView
and is intended to have a similar API. It renders as a spinning circle with a gap in it, similar to what you see in the App Store app or in the Apple Pay dialog when making a purchase. To change its color, set the tintColor
property.
-
Tell the view to start or stop spinning. If
hidesWhenStopped
is true, it will fade in/out if animated is true.Declaration
Swift
@objc public func setAnimating( _ animating: Bool, animated: Bool )
-
Whether or not the view is animating.
Declaration
Swift
@objc public var animating: Bool { get set }
-
If true, the view will hide when it is not spinning. Default is true.
Declaration
Swift
@objc public var hidesWhenStopped: Bool { get set }