InstructionsCardContainerViewDelegate
public protocol InstructionsCardContainerViewDelegate : VisualInstructionDelegate
The InstructionsCardContainerViewDelegate protocol defines a method that allows an object to customize presented visual instructions within the instructions container view.
-
primaryLabel(_:willPresent:as:)Default implementationCalled when the Primary Label will present a visual instruction.
Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func primaryLabel(_ primaryLabel: InstructionLabel, willPresent instruction: VisualInstruction, as presented: NSAttributedString) -> NSAttributedString?Parameters
primaryLabelThe custom primary label that the instruction will be presented on.
instructionthe
VisualInstructionthat will be presented.presentedthe formatted string that is provided by the instruction presenter
Return Value
optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.
-
secondaryLabel(_:willPresent:as:)Default implementationCalled when the Secondary Label will present a visual instruction.
Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func secondaryLabel(_ secondaryLabel: InstructionLabel, willPresent instruction: VisualInstruction, as presented: NSAttributedString) -> NSAttributedString?Parameters
secondaryLabelThe custom secondary label that the instruction will be presented on.
instructionthe
VisualInstructionthat will be presented.presentedthe formatted string that is provided by the instruction presenter
Return Value
optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.
Install in Dash
InstructionsCardContainerViewDelegate Protocol Reference