Browse all tags →
Tagged with swiftui
2023
Modeling view state in SwiftUI

How to reduce boilerplate code when modeling view state in SwiftUI views by using a generic enum to handle common scenarios such as loading, success, and error states.

2022
A first look at Swift Charts: building a horizontal bar chart

An introduction to the Swift Charts library and a look at how to build a horizontal bar chart using some sample data.

Recreating the App Store's expandable text in SwiftUI

Recreating the expandable text view used in the App Store's app description using SwiftUI. The view will be able to expand its content by tapping on a "more" button.