How to center placeholder text in UISearchBar iOS 11 : <p>With iOS 11, searchBars are defaulting to a left aligned text. While this looks good with the rest of the native changes to iOS, it doesn't really fit my design, and I would like it to be center, as it was before.</p>

<p>I can't find any such alignment attributes on <code>UISearchBar</code>. Am I missing something, or is it simply not possible? Do I have to create my own custom search bar e.g derived from a <code>UITextField</code> to achieve this?</p>
