Avoid using Decodable objects inside your SwiftUI views

Опубликовано: 02 Февраль 2023
на канале: iOS Mastery
493
16

Are you using decodable objects directly in your SwiftUI views? If so, you need to watch this video.
I'll explain why it is an anti-pattern and show how you can add a Mapper to help you increase the modularity of your app.

--------------------------------------------------------------------------------------------------------------------
Contents of the video
00:00 - Intro
02:28 - Issues when using Decodable objects in your SwiftUI views
06:03 - Solutions to the issues
12:28 - Conclusion