LeadKit/TIActivityIndicators
Vlad 91e6906145 Add Animatable to TIUIKitCore and add TIActivityIndicators 2020-08-19 15:47:31 +03:00
..
Sources Add Animatable to TIUIKitCore and add TIActivityIndicators 2020-08-19 15:47:31 +03:00
README.md Add Animatable to TIUIKitCore and add TIActivityIndicators 2020-08-19 15:47:31 +03:00

README.md

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.