Skip to content

8 common SwiftUI mistakes follow the videos by Paul Hudson.

Notifications You must be signed in to change notification settings

universeye/swiftui-mistakes

Repository files navigation

Common SwiftUI Mistakes

8 common SwiftUI mistakes follow the videos by Paul Hudson.

  1. Adding views and modifiers where they aren't needed
  2. Using @ObservedObject when they mean @StateObject
  3. Putting modifiers in the wrong order
  4. Attaching property observers to property wrappers
  5. Stroking shapes when you mean to stroke their border
  6. Using alerts and sheets with optionals
  7. Trying to get "behind" their SwiftUI views
  8. Creating dynamic views with invalid ranges

Menu

Source

Video's link: 8 Common SwiftUI Mistakes – and how to fix them!.

Contributions

  • All kinds of contributions (enhancements, new features, documentation & code improvements, issues & bugs reporting & todo task) are welcome. Let's make it better.

Contact

Created by Terry Kuo - feel free to contact me!

About

8 common SwiftUI mistakes follow the videos by Paul Hudson.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages