From edb401ebaf452adbd297498b78dfa6ea7ea804bc Mon Sep 17 00:00:00 2001 From: Daniil Manin Date: Thu, 8 Oct 2020 12:13:49 +0700 Subject: [PATCH] remove unused properties from ActivityIndicatorView --- Source/ActivityIndicatorView.swift | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Source/ActivityIndicatorView.swift b/Source/ActivityIndicatorView.swift index 21043d8..026bbb7 100644 --- a/Source/ActivityIndicatorView.swift +++ b/Source/ActivityIndicatorView.swift @@ -26,23 +26,12 @@ public struct ActivityIndicatorView: View { @Binding var isVisible: Bool var type: IndicatorType - @State private var isAnimating: Bool = false - @State private var parameters = Array(repeating: 0.0, count: 8) - public init(isVisible: Binding, type: IndicatorType) { self._isVisible = isVisible self.type = type } public var body: some View { - indicator - .onAppear { isAnimating = true } - .onDisappear { isAnimating = false } - } - - // MARK: - Private - - private var indicator: some View { guard isVisible else { return AnyView(EmptyView()) } switch type { case .default: