Updated for Xcode 14.2
SwiftUI’s ProgressView
can be created without any sort of binding attached, which will cause them to become indeterminate – they will show a spinner that animates forever, rather than showing some sort of clear progress.
All it takes is code like this:
struct ContentView: View {
var body: some View {
ProgressView("Downloading…")
}
}
Download this as an Xcode project
SPONSORED From March 20th to 26th, you can join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer!
Sponsor Hacking with Swift and reach the world's largest Swift community!
Link copied to your pasteboard.