diff --git a/SwiftUIPlayground.xcodeproj/project.xcworkspace/xcuserdata/tahatesser.xcuserdatad/UserInterfaceState.xcuserstate b/SwiftUIPlayground.xcodeproj/project.xcworkspace/xcuserdata/tahatesser.xcuserdatad/UserInterfaceState.xcuserstate index 5dcb735..ecbc7bb 100644 Binary files a/SwiftUIPlayground.xcodeproj/project.xcworkspace/xcuserdata/tahatesser.xcuserdatad/UserInterfaceState.xcuserstate and b/SwiftUIPlayground.xcodeproj/project.xcworkspace/xcuserdata/tahatesser.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/SwiftUIPlayground/Samples.swift b/SwiftUIPlayground/Samples.swift index ff31838..1d0df19 100644 --- a/SwiftUIPlayground/Samples.swift +++ b/SwiftUIPlayground/Samples.swift @@ -135,6 +135,7 @@ public let samples: [String: AnyView] = [ [ "Stepper": AnyView(StepperSample()), "ColorPicker": AnyView(ColorPickerSample()), + "ProgressView": AnyView(ProgressViewSample()), ] )), ] diff --git a/SwiftUIPlayground/Samples/ControlsAndIndicators/ProgressViewSample.swift b/SwiftUIPlayground/Samples/ControlsAndIndicators/ProgressViewSample.swift new file mode 100644 index 0000000..4f31033 --- /dev/null +++ b/SwiftUIPlayground/Samples/ControlsAndIndicators/ProgressViewSample.swift @@ -0,0 +1,25 @@ +// +// ProgressViewSample.swift +// SwiftUIPlayground +// +// Created by Taha Tesser on 03.10.2024. +// + +import SwiftUI + +struct ProgressViewSample: View { + @State private var progress = 0.5 + + var body: some View { + VStack { + ProgressView() + ProgressView(value: progress) + Button("More") { progress += 0.05 } + } + .padding() + } +} + +#Preview { + ProgressViewSample() +}