ProgressIndicatorView icon indicating copy to clipboard operation
ProgressIndicatorView copied to clipboard

circle() progress always renders an arc even when progress is 0

Open jawngee opened this issue 1 year ago • 0 comments

import SwiftUI
import ProgressIndicatorView

struct TestingProgress: View {
  @State private var isVisible:Bool = true
  @State private var progress:CGFloat = 0
  
    var body: some View {
      ProgressIndicatorView(isVisible: $isVisible, type: .circle(progress: $progress, lineWidth: 3, strokeColor: .white))
        .frame(width: 128)
    }
}

#Preview {
    TestingProgress()
}

Ends up With:

Screenshot of Arc at Jul 31, 2024 at 4_34_46 PM

jawngee avatar Jul 31 '24 09:07 jawngee