PaginationTableViewWrapper: Add placeholder view for initial loading state

This commit is contained in:
Ivan Zinovyev 2017-09-07 23:14:09 +03:00
parent 782eb8037b
commit b7d6925b98
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ public struct AnyLoadingIndicator: Animatable {
/// Initializer with indicator that should be wrapped.
///
/// - Parameter _: indicator for wrapping.
public init<Indicator> (_ base: Indicator) where Indicator: LoadingIndicator {
self.internalView = base.view
public init<Indicator> (_ base: Indicator, backgroundView: UIView? = nil) where Indicator: LoadingIndicator {
self.internalView = backgroundView ?? base.view
self.animatableView = base.view
}