diff --git a/NucleicRemote/NucleicRemote/Views/Theme.swift b/NucleicRemote/NucleicRemote/Views/Theme.swift index 454e55c..feff49f 100644 --- a/NucleicRemote/NucleicRemote/Views/Theme.swift +++ b/NucleicRemote/NucleicRemote/Views/Theme.swift @@ -120,6 +120,10 @@ extension View { func card(padding: CGFloat = 14) -> some View { modifier(CardBackground(padding: padding)) } /// Apply the teal accent app-wide. 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 /// animated composer glow, lighter touch). func orchestraGlow(active: Bool, cornerRadius: CGFloat = 8) -> some View {