diff --git a/Sources/LilithForms/Checkbox.swift b/Sources/LilithForms/Checkbox.swift index 56e2359..bec67b8 100755 --- a/Sources/LilithForms/Checkbox.swift +++ b/Sources/LilithForms/Checkbox.swift @@ -4,6 +4,7 @@ // Checkbox with label and indeterminate state import SwiftUI +import LilithDesignTokens /// Checkbox control /// diff --git a/Sources/LilithForms/Picker.swift b/Sources/LilithForms/Picker.swift index c343227..16c7061 100755 --- a/Sources/LilithForms/Picker.swift +++ b/Sources/LilithForms/Picker.swift @@ -4,6 +4,7 @@ // Dropdown picker with customizable options import SwiftUI +import LilithDesignTokens /// Picker control /// diff --git a/Sources/LilithForms/RadioButton.swift b/Sources/LilithForms/RadioButton.swift index dad963c..75f05b1 100755 --- a/Sources/LilithForms/RadioButton.swift +++ b/Sources/LilithForms/RadioButton.swift @@ -4,6 +4,7 @@ // Radio button with single selection group management import SwiftUI +import LilithDesignTokens /// Radio button control /// diff --git a/Sources/LilithForms/SearchInput.swift b/Sources/LilithForms/SearchInput.swift index 16e721c..8f347a7 100755 --- a/Sources/LilithForms/SearchInput.swift +++ b/Sources/LilithForms/SearchInput.swift @@ -4,6 +4,7 @@ // Search input field with magnifying glass icon and clear button import SwiftUI +import LilithDesignTokens /// Search input field /// diff --git a/Sources/LilithForms/SecureInput.swift b/Sources/LilithForms/SecureInput.swift index a4cb5d5..bc2d428 100755 --- a/Sources/LilithForms/SecureInput.swift +++ b/Sources/LilithForms/SecureInput.swift @@ -4,6 +4,7 @@ // Secure password input with reveal toggle import SwiftUI +import LilithDesignTokens /// Secure text input for passwords /// diff --git a/Sources/LilithForms/Slider.swift b/Sources/LilithForms/Slider.swift index baa8836..1e3fd2d 100755 --- a/Sources/LilithForms/Slider.swift +++ b/Sources/LilithForms/Slider.swift @@ -4,6 +4,7 @@ // Range slider with min/max labels and value display import SwiftUI +import LilithDesignTokens /// Slider control /// diff --git a/Sources/LilithForms/Switch.swift b/Sources/LilithForms/Switch.swift index ccd3b3a..99d33ab 100755 --- a/Sources/LilithForms/Switch.swift +++ b/Sources/LilithForms/Switch.swift @@ -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) } diff --git a/Sources/LilithForms/TextArea.swift b/Sources/LilithForms/TextArea.swift index 2bbabac..8c3312c 100755 --- a/Sources/LilithForms/TextArea.swift +++ b/Sources/LilithForms/TextArea.swift @@ -4,6 +4,7 @@ // Multi-line text input with character counter import SwiftUI +import LilithDesignTokens /// Multi-line text input area /// diff --git a/Sources/LilithForms/TextInput.swift b/Sources/LilithForms/TextInput.swift index 5de6196..d6eadad 100755 --- a/Sources/LilithForms/TextInput.swift +++ b/Sources/LilithForms/TextInput.swift @@ -4,6 +4,7 @@ // Text input field with validation and states import SwiftUI +import LilithDesignTokens /// Text input field ///