(OLD) Creating a custom component with @Binding – Bookworm SwiftUI Tutorial 1/10

preview_player
Показать описание
In this project we build a book review app using Core Data, @Bindable, and custom UI components.

Рекомендации по теме
Комментарии
Автор

Questions? Comments? Tweet me @twostraws.

twostraws
Автор

XCode12 has changed a little bit since this. There is no single view template and checking Core Data when creating a new project seems to inject a lot of code in by default that is not shown here. Unsure how much it will impact this tutorial.

chettodust
Автор

I wish there was more detail on when a change of a binding triggers a redraw. I noticed it depends on where and how it’s created. On a @State var with $ it triggers on change. If you creat it with get / set it still triggers, basically every time it is recreated so on any state var change and if it’s created it triggers never. I wish a tutorial would go into detail on how to handle those triggers.

TheIAmThat
Автор

Hey paul, as you talk through whats happening could you highlight the code or mouse over it, like during 3:58
Great video one again though.

yixe
Автор

Hi Paul,
Can I add @Binding to the TextField. So that it can be update the Changes in View Model

suneelseelam
Автор

Do you have ideas for how to use enums with toggles?

Inukinator
visit shbcf.ru