Contents

beginSearchInteraction()

Starts a search interaction and moves the keyboard focus to the search field.

Declaration

func beginSearchInteraction()

Discussion

If the system displays a compressed search field, starting the search interaction expands the field to the width stored in the preferredWidthForSearchField property and moves the keyboard focus into the search field. Use beginSearchInteraction() and endSearchInteraction() to programmatically control a search.

See Also

Controlling search interactions