tableView(_:shouldUpdateFocusIn:)
Asks the delegate whether the focus update specified by the context is allowed to occur.
Declaration
optional func tableView(_ tableView: UITableView, shouldUpdateFocusIn context: UITableViewFocusUpdateContext) -> BoolParameters
- tableView:
A table view in which the focus update is occurring.
- context:
An instance of Uifocusupdatecontext class, contains metadata for the focus related update.
Return Value
Discussion
The functionality of this delegate method is equivalent to overriding UITableView class’s shouldUpdateFocus(in:) method. This delegate method provides additional UITableView-related information in its context parameter, such as the index paths for the previously and next focused views. Note that, these index paths are only available if their views are contained within the table view. To learn more about the information provided by the context, see UITableViewFocusUpdateContext.