TMBarViewFocusProvider
public protocol TMBarViewFocusProvider : AnyObject
An object that can provide focus related positional data to a BarView.
-
Calculate the ‘focusArea’ for the current position and capacity.
This
CGRectdefines the area of the layout that should currently be highlighted for the selected bar button.Declaration
Swift
func focusArea(for position: CGFloat, capacity: Int) -> CGRectParameters
positionCurrent position to display.
capacityCapacity of the bar (items).
Return Value
Calculated focus rect. *
View on GitHub
Install in Dash
TMBarViewFocusProvider Protocol Reference