hard20 pts · first answer countsswiftswiftuiobservation
Which views update with @Observable
A model marked @Observable has name and cartCount. A header view reads only name. When cartCount changes, does the header’s body run again?
Discussion 0
Join free to post in the discussion.
Related questions
- Safely unwrapping a Swift optionalMobile App Developer
- Swift struct assignment copiesMobile App Developer
- Swift class shared referenceMobile App Developer
- Layering views in SwiftUIMobile App Developer
- Decoding JSON with extra keysMobile App Developer
- let compared with varMobile App Developer
- What guard let is forMobile App Developer
- Giving an optional a defaultMobile App Developer