Configure colors for Liquid Glass UI (iOS 26+)
masterOn iOS 26, visionOS 26, or macOS 26, SwiftyCrop automatically adopts the Liquid Glass design, which uses icon buttons instead of text buttons.
Button Foreground Colors
SwiftyCropConfiguration.Colors foreground keys (cancelButton, rotateButton, resetRotationButton, saveButton) apply to all OS versions. In Liquid Glass, these color the button icons.
Button Background Colors
Matching ...Background keys (e.g., cancelButtonBackground) only affect Liquid Glass by tinting the glass background of the button.
- A
.clearbackground (the default for most buttons) maintains a plain, untinted glass look. - On iOS, buttons with a non-
.clearbackground use a prominent glass style that automatically picks a contrasting icon color; in these cases, the foreground color has no effect.
Design Best Practices
The toolbar is transparent. To ensure visibility, pick colors that contrast with your chosen background and avoid system-dependent colors like .primary, which may flip with appearance settings while your background does not.