Contents

isAssignable

A Boolean that indicates whether teachers can assign the context as a task.

Declaration

var isAssignable: Bool { get set }

Discussion

Set this Boolean to false for a context that doesn’t represent an assignable task, like when you use a context solely as a container for other contexts. For example, if you add all of your app’s quiz contexts as the children of a single quiz collection context, you can mark the collection as “not assignable”:

collectionContext.isAssignable = false

This prevents the Schoolwork app from offering the collection as an assignment, while still presenting the collection as part of the context hierarchy. You don’t need to configure the individual quizzes as assignable, because the framework creates new contexts as assignable by default.

See Also

Characterizing the context