Hello @bmorefield ,
Thank you for the great article for Grids. I am wandering about content view refresh for AwardsView
when we indirectly use flightNavigation
via computed properties:
@EnvironmentObject var flightNavigation: AppEnvironment
var awardArray: [AwardInformation] {
flightNavigation.awardList
}
var awardColumns: [GridItem] {
[GridItem(.adaptive(minimum: 150, maximum: 170))]
}
var activeAwards: [AwardInformation] {
awardArray.filter { $0.awarded }
}
var inactiveAwards: [AwardInformation] {
awardArray.filter { !$0.awarded }
}
How does SwiftUI knows it needs to update AwardsView’s body since it don’t reference flightNavigation
directly?
Thanks,
Dzmitry.