Перейти к содержимому

How to create custom models in SwiftUI | Bootcamp #49

Swiftful Thinking

0:00 / 0:00

How to create custom models in SwiftUI | Bootcamp #49

27 029 просмотров · 5 лет назад
Swiftful Thinking
303 тыс. подписчиков
27 029 просмотров · 5 лет назад
In this video we will create and implement a custom "model" into our application. These custom data types are often required in our applications because we can include many different data points into a single model. For example, a User's data might need to include more than just their name. By building a custom data type, we can include their name, username, email, bio, etc. all in a single object! We will be building an "immutable struct" using a struct and let constants and then incorporate it into our SwiftUI application. Next video:    • How to use @ObservableObject and @StateObj...   Last video:    • How to add a Tap Gesture in SwiftUI | Boot...   🤙 WELCOME BACK 🤙 WEBSITE: https://www.swiftful-thinking.com DISCORD:   / discord   GITHUB: https://github.com/SwiftfulThinking/ SAY THANKS: https://www.buymeacoffee.com/nicksarno