How can i change UISearchBar placeholder alignment to right ? IOS Swift IOS version > 9.3

572 Views Asked by At

I have done it as

let searchTextField: UITextField? = (searchBar.value(forKey: "_searchField") as? UITextField)
searchTextField.textAlignment = .right

its working fine on IOS version <= 9.3 but problem in IOS version > 9.3

any help will be appreciated.

Thanks

0

There are 0 best solutions below