FamilyActiviySelections

Below code for AppStorage gives me error as: "No exact matches in call to initializer"

Can anyone please provide how to fix it? I am using code 14.2 and Family controls Capability.

@AppStorage("shieldedApps", store: UserDefaults(suiteName: "group.com.myapp.timeout")) var selectionToDiscourage = FamilyActivitySelection() {     willSet {       UserDefaults.standard.setValue(true, forKey: "appSelected")

      print("got here (newValue)")

      for category in newValue.categories {         print(category.localizedDisplayName)       }

      let applications = newValue.applicationTokens       let categories = newValue.categoryTokens       // let webCategories = newValue.webDomainTokens       store.shield.applications = applications.isEmpty ? nil : applications       store.shield.applicationCategories = ShieldSettings.ActivityCategoryPolicy.specific(categories, except: Set())       store.shield.webDomainCategories = ShieldSettings.ActivityCategoryPolicy.specific(categories, except: Set())             }   }

FamilyActiviySelections
 
 
Q