Release Keyboard Release
Nucleic-Session: FD190A87-E8F7-4C72-A15E-E35B88EF5921
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user