As for not changing selectionToDiscourage in any way, I didn't because I am not sure how. For example, I tried writing this in my fetchApps function -
model.selectionToDiscourage = savedSelection.map(.bundleIdentifier)
My code throws an error here saying that I cannot assign value of type '[String?]' to type 'FamilyActivitySelection'.
Post
Replies
Boosts
Views
Activity
This is the data which savedSelection returned when I printed it after selecting an app (I wrote a print statement inside of fetchApps) -
Application(token: ApplicationToken(data: 128 bytes))
[<AppToken: 0x30351ff70> (entity: AppToken; id: 0x853eb00f9a7fd9c0 x-coredata://15EF1B82-60AB-499D-A5A8-B65972D11F59/AppToken/p29; data: {
bundleIdentifier = Temp;
})]
I am not sure if this is the right value that you are talking about.
I responded to your message in the replies below (due to word count) in case you don't get notifications for those. Thank you!