Skip to content

Instantly share code, notes, and snippets.

@fffergal
Created March 15, 2022 10:36
Show Gist options
  • Save fffergal/192a977d528f0e7bf4b8962c51d91560 to your computer and use it in GitHub Desktop.
Save fffergal/192a977d528f0e7bf4b8962c51d91560 to your computer and use it in GitHub Desktop.
import SwiftUI
import CoreData
struct ContentView: View {
@Environment(\.managedObjectContext) private var viewContext
@State var progressValue: Double = 1
var body: some View {
NavigationView {
List {
ProgressView("Test", value: progressValue)
.onAppear {
withAnimation(.linear(duration: 10)) {
progressValue = 0
}
}
}
Text("Select something")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment