Questions tagged [observation]

2 questions
0
votes
0 answers

Use multiple @Observable inside each other using @Enviroment

I'm trying the new Observation in SwiftUI 5, I created 2 classes using the new @Observable wrapper like this: @Observable class CategoriesViewModel { var categories: [Category] = [] } @Observable class NotesViewModel { var notes: [Note] =…
Adel Bassiony
  • 127
  • 2
  • 11
0
votes
1 answer

What does Apple mean by "Enable Dead Code Stripping"

[Edit] I am not sure why I got a minus vote on this. I looked online but did not find much about what this setting does and now I got a great explanation below by Rob Napier, so I am quite happy. And I believe this can help other people too! I found…
multitudes
  • 2,898
  • 2
  • 22
  • 29