- July 11, 2025
- Mins Read
Protocol to handle initial Loadings, Empty Views and Error Handling in a ViewController & views
pod ‘StatusProvider’
class ErrorViewController: UIViewController, StatusController {
override func viewDidLoad() {
super.viewDidLoad()
title = “Error”
let status = Status(title: “Error”, description: “Oh… fu**”, actionTitle: “Retry 🚀”) {
}
show(status: status)
}
}
class ActivityViewController: UIViewController, StatusController {
override func viewDidLoad() {
super.viewDidLoad()
title = “Loading”
let status = Status(isLoading: true, description: “Lädt…”)
show(status: status)
}
}
class EmptyViewController: UIViewController, StatusController {
override func viewDidLoad() {
super.viewDidLoad()
title = “Empty”
let status = Status(title: “no Data”, description: “No data available.💣”, actionTitle: “Create ⭐️”, image: UIImage(named: “placeholder_instagram”)) {
self.hideStatus()
}
show(status: status)
}
}
A SwiftUI View that emits confetti with user-defined shapes, images, and text.
A colour wheel made all in SwiftUI. There are 2 different colour wheels to choose from. The first main one ...
A color picker implementation with color wheel appearance written in plain SwiftUI. It is compatible with UIColor and NSColor.
This repository is no longer maintained. Here's why: with the release of iOS 16 SwiftUI now enables most of the ...