Custom Progress View in SwiftUI
Reading time: 3 min
This recipe shows how to customize a Progress
view by implementing a custom ProgressViewStyle
. You'll implement a circular progress bar that supports both definite and indefinite progress. The end result will look like this:
Progress
view and ProgressViewStyle
were introduced in SwiftU...
Progress Dialog / HUD in SwiftUI
Reading time: 1 min
This recipe shows how to render a progress dialog / HUD in SwiftUI. The end result looks like this:
This component is available as a Swift Package in this repo.
In order to make this happen, we'll use the custom view dialog from this recipe. If you haven't yet, be sure to check it ou...
Material Indefinite Loading Bar in SwiftUI
Reading time: 1 min
This recipe shows how to implement an indefinite loading bar in SwiftUI. This kind of view is common in Android Material Design as it's sleek and takes up less space than a conventional, circular LoadingView
. The end result looks like this:
The code for this is quite simple:
- Render a
Re...