chore(LilithForms): 🔧 Add unified accessibility handlers and render optimizations for form components
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
e5b0920654
commit
0dde2ac31c
9 changed files with 11 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
// Checkbox with label and indeterminate state
|
||||
|
||||
import SwiftUI
|
||||
import LilithDesignTokens
|
||||
|
||||
/// Checkbox control
|
||||
///
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
// Dropdown picker with customizable options
|
||||
|
||||
import SwiftUI
|
||||
import LilithDesignTokens
|
||||
|
||||
/// Picker control
|
||||
///
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
// Radio button with single selection group management
|
||||
|
||||
import SwiftUI
|
||||
import LilithDesignTokens
|
||||
|
||||
/// Radio button control
|
||||
///
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
// Search input field with magnifying glass icon and clear button
|
||||
|
||||
import SwiftUI
|
||||
import LilithDesignTokens
|
||||
|
||||
/// Search input field
|
||||
///
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
// Secure password input with reveal toggle
|
||||
|
||||
import SwiftUI
|
||||
import LilithDesignTokens
|
||||
|
||||
/// Secure text input for passwords
|
||||
///
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
// Range slider with min/max labels and value display
|
||||
|
||||
import SwiftUI
|
||||
import LilithDesignTokens
|
||||
|
||||
/// Slider control
|
||||
///
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
// Toggle switch with haptic feedback
|
||||
|
||||
import SwiftUI
|
||||
import LilithDesignTokens
|
||||
|
||||
/// Toggle switch control
|
||||
///
|
||||
|
|
@ -81,8 +82,10 @@ public struct Switch: View {
|
|||
guard !isDisabled else { return }
|
||||
|
||||
// Medium haptic feedback
|
||||
#if canImport(UIKit)
|
||||
let generator = UIImpactFeedbackGenerator(style: .medium)
|
||||
generator.impactOccurred()
|
||||
#endif
|
||||
|
||||
onChange?(newValue)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
// Multi-line text input with character counter
|
||||
|
||||
import SwiftUI
|
||||
import LilithDesignTokens
|
||||
|
||||
/// Multi-line text input area
|
||||
///
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
// Text input field with validation and states
|
||||
|
||||
import SwiftUI
|
||||
import LilithDesignTokens
|
||||
|
||||
/// Text input field
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue