persistPressOnDrag property
Whether the pressed glass distortion persists while the finger is held down, even if dragged far away from the button.
-
true(default): The distortion and glow stay active for the entire duration the finger is on screen, matching iOS 26 toolbar/navigation buttons (Weather app, Maps, etc.). The button stretches with a jelly feel and maintains its pressed visual state until the finger lifts. -
false: The distortion cancels when the finger moves beyond the tap tolerance (~18 logical pixels), matching iOS 26 lock screen buttons (camera, torch) that snap back if you drag away.
Defaults to true.
Implementation
final bool persistPressOnDrag;