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: