File tree Expand file tree Collapse file tree
Sources/ValidatorUI/Classes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,19 +37,11 @@ public protocol IUIValidatable: AnyObject {
3737 func validateOnInputChange( isEnabled: Bool )
3838}
3939
40- #if swift(>=5.10)
41- private nonisolated ( unsafe) var kValidationRules: UInt8 = 0
42- private nonisolated ( unsafe) var kValidationHandler: UInt8 = 0
40+ private nonisolated ( unsafe) var kValidationRules: UInt8 = 0
41+ private nonisolated ( unsafe) var kValidationHandler: UInt8 = 0
4342
44- // swiftlint:disable:next prefixed_toplevel_constant
45- private nonisolated ( unsafe) let validator = Validator ( )
46- #else
47- private var kValidationRules : UInt8 = 0
48- private var kValidationHandler : UInt8 = 0
49-
50- // swiftlint:disable:next prefixed_toplevel_constant
51- private let validator = Validator ( )
52- #endif
43+ // swiftlint:disable:next prefixed_toplevel_constant
44+ private nonisolated ( unsafe) let validator = Validator ( )
5345
5446public extension IUIValidatable {
5547 @discardableResult
Original file line number Diff line number Diff line change 66import SwiftUI
77import ValidatorCore
88
9- #if swift(>=5.10)
10- // swiftlint:disable:next prefixed_toplevel_constant
11- private nonisolated ( unsafe) let validator = Validator ( )
12- #else
13- // swiftlint:disable:next prefixed_toplevel_constant
14- private let validator = Validator ( )
15- #endif
9+ // swiftlint:disable:next prefixed_toplevel_constant
10+ private nonisolated ( unsafe) let validator = Validator ( )
1611
1712public extension View {
1813 /// Validate a binding item using a set of validation rules and perform an action based on
You can’t perform that action at this time.
0 commit comments