ContextAccepting
@MainActor
public protocol ContextAccepting : UIViewController
The protocol for a UIViewController to make it compatible with ContextSettingTask.
-
Type of
Contextobject thatUIViewControllercan deal withDeclaration
Swift
associatedtype Context
-
checkCompatibility(with:Default implementation) -
ContextSettingTaskwill call this method to provide theContextinstance to theUIViewControllerthat has just been build or found.Declaration
Swift
@MainActor func setup(with context: Context) throwsParameters
contextContextinstance.