i use the ios26 toolbar button, but when i press it the image become white and so invisible to the user. Is there any api to make the image visible ?

Asked on 06/20/2025

1 search

In iOS 26, the new design system introduces a glass appearance for toolbars and navigation bars, which can sometimes cause issues with visibility, such as images appearing white or invisible. To address this, you can use the new APIs to customize the appearance of toolbar buttons and ensure they remain visible.

  1. Glass Appearance: By default, bar buttons use a glass background. If your image is becoming invisible, it might be due to the glass effect. You can customize the appearance using the ui.ButtonConfiguration to apply a tint color or use the prominent style to ensure visibility. This is discussed in the session Build a UIKit app with the new design.

  2. Tint Modifiers: You can apply tint modifiers to toolbar items to ensure they are visible against the glass background. This is particularly useful for key actions where visibility is crucial. The session Platforms State of the Union mentions using tint modifiers for toolbar items.

  3. Prominent Style: For toolbar items that need to stand out, you can use the prominent style, which tints the glass using your app's accent color. This is perfect for displaying state or emphasizing important actions. This is covered in the session Build an AppKit app with the new design.

By utilizing these APIs, you can ensure that your toolbar buttons remain visible and provide a better user experience. If you need more specific guidance, you might want to explore the sessions mentioned above for detailed examples and code snippets.