glassをボタンに適応しない方法は?
Asked on 2025-06-11
1 search
To avoid applying the glass effect to buttons in a UIKit app, you can follow these guidelines:
-
Use the
isInteractive
Property: If you have custom views and you don't want them to interact with the glass effect, ensure that theisInteractive
property is set tofalse
. This will prevent the glass effect from reacting to user interactions. -
Remove the Glass Effect: When you no longer need the glass effect on a button, you can animate it out by setting the effect to
nil
. This ensures that the glass dematerializes with the appropriate animation. -
Avoid Glass on Non-Interactive Items: In AppKit, for example, non-interactive items like custom titles and status indicators should avoid the glass material. You can remove the glass from an NSToolbar item by setting the
isBordered
property tofalse
. -
Use Custom Tint Colors: If you need to use a different appearance, you can specify a different tint color for the button, which can help differentiate it from the glass effect.
For more detailed guidance, you can refer to the session Build a UIKit app with the new design (19:15) where custom elements and their interaction with glass are discussed.

Build a UIKit app with the new design
Update your UIKit app to take full advantage of the new design system. We’ll dive into key changes to tab views, split views, bars, presentations, search, and controls, and show you how to use Liquid Glass in your custom UI. To get the most out of this video, we recommend first watching “Get to know the new design system” for general design guidance.

Build an AppKit app with the new design
Update your AppKit app to take full advantage of the new design system. We’ll dive into key changes to tab views, split views, bars, presentations, search, and controls, and show you how to use Liquid Glass in your custom UI. To get the most out of this video, we recommend first watching “Get to know the new design system” for general design guidance.

Meet Liquid Glass
Liquid Glass unifies Apple platform design language while providing a more dynamic and expressive user experience. Get to know the design principles of Liquid Glass, explore its core optical and physical properties, and learn where to use it and why.