Release Keyboard Release

Nucleic-Session: FD190A87-E8F7-4C72-A15E-E35B88EF5921
This commit is contained in:
Nucleic
2026-06-26 20:22:11 -07:00
parent d97c9397a0
commit 4b6e51ab03
@@ -120,6 +120,10 @@ extension View {
func card(padding: CGFloat = 14) -> some View { modifier(CardBackground(padding: padding)) } func card(padding: CGFloat = 14) -> some View { modifier(CardBackground(padding: padding)) }
/// Apply the teal accent app-wide. /// Apply the teal accent app-wide.
func nucleicTint() -> some View { tint(Palette.accent) } func nucleicTint() -> some View { tint(Palette.accent) }
/// Give a text field a way to release the keyboard. Without this, iOS leaves a focused
/// composer no dismiss affordance (no Return key on a vertical/multiline field, nothing to
/// tap) and the keyboard stays up. See `KeyboardDismissable`.
func keyboardDismissable() -> some View { modifier(KeyboardDismissable()) }
/// Wrap a composer field in the orchestra purple ring while `active` (mirrors the Mac's /// Wrap a composer field in the orchestra purple ring while `active` (mirrors the Mac's
/// animated composer glow, lighter touch). /// animated composer glow, lighter touch).
func orchestraGlow(active: Bool, cornerRadius: CGFloat = 8) -> some View { func orchestraGlow(active: Bool, cornerRadius: CGFloat = 8) -> some View {