ios 13 - Custom SearchBar with UISearchBar _searchField not working : <p>Before Xcode-11-Beta (ios13) below code for custom searchbar value for key to get textField working fine. Now getting below crash log.</p>

<blockquote>
  <p>'NSGenericException', reason: 'Access to UISearchBar's _searchField ivar is prohibited. This is an application bug'</p>
</blockquote>

<pre><code>- (UITextField *)textField
{
 return [self valueForKey:@"_searchField"];
}
</code></pre>

<p>Any help appreciated. </p>
