iosxamarintoolbartoolbaritems

Xamarin Form: Is there a way to reduce the spacing on ToolBarItems


I am using the ToolBarItems on the navigation bar. On iOS, the toolbar items separated in quite a distance a apart. Can we bring them closer a bit.


Solution

  • The spacing between items is following the Human Interface Guideline from Apple for iOS. I recommend not violating the guidelines unless you have a very specific reason.

    To answer your question:

    You can use a custom renderer for UIToolbar and or UINavigationbar that places its subviews aka UIBarButtonItem closer together.