8 common SwiftUI mistakes follow the videos by Paul Hudson.
- Adding views and modifiers where they aren't needed
- Using @ObservedObject when they mean @StateObject
- Putting modifiers in the wrong order
- Attaching property observers to property wrappers
- Stroking shapes when you mean to stroke their border
- Using alerts and sheets with optionals
- Trying to get "behind" their SwiftUI views
- Creating dynamic views with invalid ranges
Video's link: 8 Common SwiftUI Mistakes – and how to fix them!.
- All kinds of contributions (enhancements, new features, documentation & code improvements, issues & bugs reporting & todo task) are welcome. Let's make it better.
Created by Terry Kuo - feel free to contact me!