InstructionsCardContainerViewDelegate

@objc(MBInstructionsCardContainerViewDelegate)
public protocol InstructionsCardContainerViewDelegate : VisualInstructionDelegate

The InstructionsCardContainerViewDelegate protocol defines a method that allows an object to customize presented visual instructions within the instructions container view.

  • Called when the Primary Label will present a visual instruction.

    Declaration

    Swift

    @objc(primaryLabel:willPresentVisualInstruction:asAttributedString:)
    optional func primaryLabel(_ primaryLabel: InstructionLabel, willPresent instruction: VisualInstruction, as presented: NSAttributedString) -> NSAttributedString?

    Parameters

    primaryLabel

    The custom primary label that the instruction will be presented on.

    instruction

    the VisualInstruction that will be presented.

    presented

    the 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.

  • Called when the Secondary Label will present a visual instruction.

    Declaration

    Swift

    @objc(secondaryLabel:willPresentVisualInstruction:asAttributedString:)
    optional func secondaryLabel(_ secondaryLabel: InstructionLabel, willPresent instruction: VisualInstruction, as presented: NSAttributedString) -> NSAttributedString?

    Parameters

    secondaryLabel

    The custom secondary label that the instruction will be presented on.

    instruction

    the VisualInstruction that will be presented.

    presented

    the 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.