STPPaymentActivityIndicatorView

@interface 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

    Objective-C

    - (void)setAnimating:(BOOL)animating animated:(BOOL)animated;

    Swift

    func setAnimating(_ animating: Bool, animated: Bool)
  • Whether or not the view is animating.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL animating;

    Swift

    var animating: Bool { get set }
  • If true, the view will hide when it is not spinning. Default is true.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL hidesWhenStopped;

    Swift

    var hidesWhenStopped: Bool { get set }