Return to site

Where is badge icon set swift

broken image
broken image

In the screenshot below we’ve got a blue badge instead of the default red one and it’s been moved so that it overlaps the top of the navigation bar. If you want to adjust other characteristics such as the title position (say to move it further or closer to the icon), font, etc., it’s simple enough to do with the titleTextAttributes and titlePositionAdjustment properties. Notice the differing stacked and inline appearances based on the iPhone rotation above. This will result in a UI similar to the following for landscape or portrait representations: SetTabBarItemColors(pactInlineLayoutAppearance) SetTabBarItemColors(appearance.stackedLayoutAppearance) we're setting all three available appearances Set all possible tab bar item styles as necessary (based on rotation and size capabilities).

broken image