LeadKit/TIActivityIndicators/README.md

949 B

TIActivityIndicators

Bunch of protocols and views of Activity Indicators.

Protocols

ActivityIndicator

Protocol that describes basic activity indicator which conforms to Animatable.


public protocol ActivityIndicator {

    /// Type of view. Should be instance of UIView with basic animation actions.
    associatedtype View: UIView, Animatable

    /// The underlying view.
    var view: View { get }
}

ActivityIndicatorHolder

Protocol that describes placeholder view, containing activity indicator.


public protocol ActivityIndicatorHolder: class {
    var activityIndicator: Animatable { get }
    var indicatorOwner: UIView { get }
}

Views

AnyActivityIndicator

Type that performs some kind of type erasure for ActivityIndicator.

Usage examples

  • Loading Indicator in PaginationWrapper of main framework LeadKit.

Installation via SPM

You can install this framework as a target of LeadKit.