ContextAcceptingView
@MainActor
public protocol ContextAcceptingView
The protocol for a View to make it compatible with ContextSettingTask.
Due to some current swift limitations protocol ContextAccepting can not be used directly.
-
Type of
Contextobject thatViewcan be acceptDeclaration
Swift
associatedtype Context
-
checkCompatibility(with:Default implementation) -
ContextSettingTaskwill call this method to provide theContextinstance to theViewthat has just been build or found.Declaration
Swift
@MainActor mutating func setup(with context: Context) throwsParameters
contextContextinstance.