title: How to set UIBarButton size in iOS 11 to match size in iOS 10
body: <p>I have an view controller with a simple <code>UINavigationBar</code> with a <code>rightBarButtonItem</code> which contains a button view with an image asset.</p>
  
  <p>In iOS 10, this UIBarButtonItem would be sized properly, not filling up the entire height and of the navigation bar and therefore taking up enough width to stay proportional to the height. Similar to how UIBarButton items look in Apple's app throughout iOS.</p>
  
  <p>Now in iOS 11, these icons are massive and take up way more space than they used to in iOS 10.</p>
  
  <p>Is there a way to restore them to how they looked on iOS 10? I tried adding constraints to the <code>customView</code> property of the UIBarButtonItems to no avail.</p>