8 Common SwiftUI Mistakes – and how to fix them!
SwiftUI is a big and complex framework, and although it’s great fun to work with there’s also a lot of scope for making mistakes. In this article I’m going to walk through 8 common mistakes SwiftUI learners make, and how to fix them.
1:48 – Adding views and modifiers where they aren't needed
4:05 – Using @ObservedObject when they mean @StateObject
6:38 – Putting modifiers in the wrong order
12:29 – Attaching property observers to property wrappers
16:20 – Stroking shapes when you mean to stroke their border
19:19 – Using alerts and sheets with optionals
22:36 – Trying to get "behind" their SwiftUI views
25:03 – Creating dynamic views with invalid ranges
Видео 8 Common SwiftUI Mistakes – and how to fix them! канала Paul Hudson
1:48 – Adding views and modifiers where they aren't needed
4:05 – Using @ObservedObject when they mean @StateObject
6:38 – Putting modifiers in the wrong order
12:29 – Attaching property observers to property wrappers
16:20 – Stroking shapes when you mean to stroke their border
19:19 – Using alerts and sheets with optionals
22:36 – Trying to get "behind" their SwiftUI views
25:03 – Creating dynamic views with invalid ranges
Видео 8 Common SwiftUI Mistakes – and how to fix them! канала Paul Hudson
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![SwiftUI Live: Building an app from scratch](https://i.ytimg.com/vi/SroTB1buuD0/default.jpg)
![Building a SwiftUI app for iOS and macOS – Swift on Sundays Tutorial, September 22nd 2019](https://i.ytimg.com/vi/YaMKOTWdT6U/default.jpg)
![SwiftUI Tutorial: What's the difference between @State, @ObjectBinding, and @EnvironmentObject?](https://i.ytimg.com/vi/stSB04C4iS4/default.jpg)
![iOS 13 SwiftUI Tutorial: Interactively Transition and Share Data between Views with SwiftUI](https://i.ytimg.com/vi/cc23YTGZVbQ/default.jpg)
![What's new in SwiftUI for iOS 14 – Extended Edition](https://i.ytimg.com/vi/-h8pk2pe7Xo/default.jpg)
![How to synchronize animations from one view to another with matchedGeometryEffect() – SwiftUI](https://i.ytimg.com/vi/x7fdvXdVd98/default.jpg)
![The Complete Guide to NavigationView in SwiftUI](https://i.ytimg.com/vi/nA6Jo6YnL9g/default.jpg)
![Building a sleep app with Core ML and Create ML – Swift on Sundays March 17th 2019](https://i.ytimg.com/vi/x9_BG2q7XYw/default.jpg)
![Building a space shooter with SpriteKit and Codable – Swift on Sundays March 31st 2019](https://i.ytimg.com/vi/0-lM51yI-PA/default.jpg)
![5 SwiftUI Concepts Every Beginning SwiftUI Developer Needs To Know (2020)](https://i.ytimg.com/vi/51xIHDm_BDs/default.jpg)
![](https://i.ytimg.com/vi/eSLi4ymJwSk/default.jpg)
![Building a Vapor API with a matching iOS app – Swift on Sundays March 10th 2019](https://i.ytimg.com/vi/pSgWwyj1gX4/default.jpg)
![SwiftUI Basics Tutorial](https://i.ytimg.com/vi/HXoVSbwWUIk/default.jpg)
![SwiftUI 2.0: MVVM - A Practical Approach](https://i.ytimg.com/vi/LntH6moCuo0/default.jpg)
![Creating, Using and Sharing Xcode Snippets](https://i.ytimg.com/vi/FrLczxak9rQ/default.jpg)
![Lecture 1: Course Logistics and Introduction to SwiftUI](https://i.ytimg.com/vi/jbtqIBpUG7g/default.jpg)
![What's new in SwiftUI for iOS 14?](https://i.ytimg.com/vi/uitE6bmeFxM/default.jpg)
![SwiftUI Live: Building an app from scratch](https://i.ytimg.com/vi/FE4ys3tW1VI/default.jpg)
![SwiftUI MVVM Programming with ObservableObject @Published @ObservedObject](https://i.ytimg.com/vi/1IlUBHvgY8Q/default.jpg)
![SwiftUI vs UIKit – Comparison of building the same app in each framework](https://i.ytimg.com/vi/qk2y-TiLDZo/default.jpg)