In the previous video ( • Prevent SwiftUI from re-rendering views ), I talked about preventing SwiftUI from re-rendering all of the views. In this video, I have the opposite problem: SwiftUI does not redraw views when the data changes. It may happen to you when you use an Observable Object inside another Observable Object. When data changes inside the nested Observable Object, SwiftUI will not trigger the update.
This issue can be also solved by the new Observation framework in iOS 17. Check out my video about it, here: • SwiftUI: New Observation Framework
Link to the repository: https://github.com/mikina/NestedObser...
00:00 Intro
00:24 Nested Observable Objects
04:06 Outro
#iOS #Swift #SwiftUI
Music: Streambeats
Nesta página do site você pode assistir ao vídeo on-line How to solve nested Observable Objects issue duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Mike Mikina 31 Outubro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 943 vezes e gostou like espectadores. Boa visualização!