diff --git a/LeadKit/LeadKit/Structures/Views/AnyLoadingIndicator.swift b/LeadKit/LeadKit/Structures/Views/AnyLoadingIndicator.swift index 5e3386cd..067892f9 100644 --- a/LeadKit/LeadKit/Structures/Views/AnyLoadingIndicator.swift +++ b/LeadKit/LeadKit/Structures/Views/AnyLoadingIndicator.swift @@ -22,16 +22,21 @@ import UIKit +/// Type that performs some kind of type erasure for LoadingIndicator. public struct AnyLoadingIndicator: Animatable { private let internalView: UIView private let animatableView: Animatable + /// Initializer with indicator that should be wrapped. + /// + /// - Parameter _: indicator for wrapping. public init(_ base: Indicator) where Indicator: LoadingIndicator { self.internalView = base.view self.animatableView = base.view } + /// The indicator view. var view: UIView { return internalView }