How do I in UIKit tint a glass button?

Asked on 2026-02-10

1 search

To tint a glass button in UIKit, you can use the new glass appearances available in iOS 26. Specifically, you can use the UI.ButtonConfiguration to apply a glass configuration that tints the button with your app's tint color. Here's a brief overview of how you can achieve this:

  1. Use the Glass Configuration: You can choose between standard glass and prominent glass. The prominent glass will tint the button using your app's tint color.

  2. Create a Custom Tint: If you want to use a custom tint color, you can create a new UI glass effect and assign your custom tint color to it. This will automatically adapt to a vibrant version of the color.

  3. Animate the Tint: You can animate changes to the tint color alongside other properties of the glass effect to create a dynamic and interactive experience.

For more detailed guidance, you can refer to the session Build a UIKit app with the new design (17:24) where these concepts are discussed.