From f0d4fd9505fff90856e54e05e31db76efbac0c71 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Tue, 11 Apr 2017 13:34:00 +0300 Subject: [PATCH] Add documentation for AnyLoadingIndicator --- LeadKit/LeadKit/Structures/Views/AnyLoadingIndicator.swift | 5 +++++ 1 file changed, 5 insertions(+) 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 }