Returns the position adjustment for a given icon.
SDKs
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
func setPositionAdjustment(_ adjustment: UIOffset, for icon: UISearch Bar.Icon)
Parameters
adjustment
The offset to use for the icon identified by
icon
.icon
An icon identifier constant.
Discussion
Use this method to adjust the position of an icon within the search text field.