Family Controls

    // Shield selected applications.     let model = MyModel()     let applications = model.selectionToShield.applications

From Example code, I have error cannot find 'MyModel' in scope. Please show me MyModel().

MyModel is your model, that you create, to keep track of data such as applications you want to shield.

can you give an example to how this model should look like?

@vova085 You can make a model as below

import Foundation
import Combine
import FamilyControls

final class MyModel : ObservableObject
{
    @Published var selectionToDiscourage = FamilyActivitySelection()
}

Much appreciated!

Family Controls
 
 
Q