InstructionsBannerViewDelegate
public protocol InstructionsBannerViewDelegate : VisualInstructionDelegate
InstructionsBannerViewDelegate
provides methods for reacting to user interactions in InstructionsBannerView
.
-
didTapInstructionsBanner(_:)
Default implementationCalled when the user taps the
InstructionsBannerView
.Default Implementation
UnimplementedLogging
prints a warning to standard output the first time this method is called.Declaration
Swift
func didTapInstructionsBanner(_ sender: BaseInstructionsBannerView)
Parameters
sender
The
BaseInstructionsBannerView
instance. -
didSwipeInstructionsBanner(_:swipeDirection:)
Default implementationCalled when the user swipes either left, right, or down on the
InstructionsBannerView
.Default Implementation
UnimplementedLogging
prints a warning to standard output the first time this method is called.Declaration
Swift
func didSwipeInstructionsBanner(_ sender: BaseInstructionsBannerView, swipeDirection direction: UISwipeGestureRecognizer.Direction)
Parameters
sender
The
BaseInstructionsBannerView
instance.direction
Direction, in which swiping was performed: (either
.left
,.right
,.top
or.bottom
).