diff --git a/Package.resolved b/Package.resolved index 044bf93..b19ea20 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,13 +1,13 @@ { - "originHash" : "7724a377457178ce875fe18adc9a76467dd42003b108c81973a2c98f158d4aef", + "originHash" : "9cf52f52d9367590f3cfbd7b1243b3b7207476aa85223751b39c10f634dc8a37", "pins" : [ { "identity" : "swift-async-algorithms", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-async-algorithms.git", "state" : { - "revision" : "042e1c4d9d19748c9c228f8d4ebc97bb1e339b0b", - "version" : "1.0.4" + "revision" : "d0b4a06d0f173a2f3be27d3ea21b3c3aa18db440", + "version" : "1.1.4" } }, { @@ -15,8 +15,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-collections.git", "state" : { - "revision" : "8c0c0a8b49e080e54e5e328cc552821ff07cd341", - "version" : "1.2.1" + "revision" : "a0cb0954ecb21e4e31b0070e6ed5674e8556685a", + "version" : "1.6.0" } }, { @@ -24,8 +24,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/swiftlang/swift-syntax.git", "state" : { - "revision" : "0687f71944021d616d34d922343dcef086855920", - "version" : "600.0.1" + "revision" : "79e4b74a295b6eb74a8b585e3a39d29e70c1dbd1", + "version" : "603.0.2" } }, { @@ -33,8 +33,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/nicklockwood/SwiftFormat.git", "state" : { - "revision" : "c8e50ff2cfc2eab46246c072a9ae25ab656c6ec3", - "version" : "0.60.1" + "revision" : "a5fa7a6a57abeb834df1b3fa43ea9133137d5ade", + "version" : "0.61.1" } } ], diff --git a/Sources/Vexillographer/FlagControl/FlagTextField+FloatingPoint.swift b/Sources/Vexillographer/FlagControl/FlagTextField+FloatingPoint.swift index 80529bd..97dfb1d 100644 --- a/Sources/Vexillographer/FlagControl/FlagTextField+FloatingPoint.swift +++ b/Sources/Vexillographer/FlagControl/FlagTextField+FloatingPoint.swift @@ -18,13 +18,13 @@ import Vexil extension FlagTextField where Value.BoxedValueType: BinaryFloatingPoint { init(configuration: FlagControlConfiguration) { - self = Self( + self.init( configuration: configuration, formatted: \.asString, editingFormat: { $0 }, ) #if os(iOS) || os(tvOS) - .keyboardType(.decimalPad) + keyboardType = .decimalPad #endif } @@ -56,13 +56,13 @@ extension FlagControlConfiguration: FloatingPointTextFieldRepresentable where Va extension FlagTextField { init(configuration: FlagControlConfiguration) where Value == Wrapped?, Wrapped.BoxedValueType: BinaryFloatingPoint { - self = Self( + self.init( configuration: configuration, formatted: \.asStringOrEmpty, editingFormat: { $0 }, ) #if os(iOS) || os(tvOS) - .keyboardType(.decimalPad) + keyboardType = .decimalPad #endif } diff --git a/Sources/Vexillographer/FlagControl/FlagTextField+Integer.swift b/Sources/Vexillographer/FlagControl/FlagTextField+Integer.swift index befd298..5cd9294 100644 --- a/Sources/Vexillographer/FlagControl/FlagTextField+Integer.swift +++ b/Sources/Vexillographer/FlagControl/FlagTextField+Integer.swift @@ -18,13 +18,13 @@ import Vexil extension FlagTextField where Value.BoxedValueType: BinaryInteger { init(configuration: FlagControlConfiguration) { - self = Self( + self.init( configuration: configuration, formatted: \.asString, editingFormat: { $0.filter(\.isNumber) }, ) #if os(iOS) || os(tvOS) - .keyboardType(.numberPad) + keyboardType = .numberPad #endif } @@ -56,13 +56,13 @@ extension FlagControlConfiguration: IntegerFlagTextFieldRepresentable where Valu extension FlagTextField { init(configuration: FlagControlConfiguration) where Value == Wrapped?, Wrapped.BoxedValueType: BinaryInteger { - self = Self( + self.init( configuration: configuration, formatted: \.asStringOrEmpty, editingFormat: { $0.filter(\.isNumber) }, ) #if os(iOS) || os(tvOS) - .keyboardType(.numberPad) + keyboardType = .numberPad #endif } diff --git a/Sources/Vexillographer/FlagControl/FlagTextField.swift b/Sources/Vexillographer/FlagControl/FlagTextField.swift index 4f95764..bf85a6b 100644 --- a/Sources/Vexillographer/FlagControl/FlagTextField.swift +++ b/Sources/Vexillographer/FlagControl/FlagTextField.swift @@ -27,7 +27,7 @@ struct FlagTextField: View { private var format: (String) -> String private var editingFormat: (String) -> String #if os(iOS) || os(tvOS) - private var keyboardType = UIKeyboardType.default + var keyboardType = UIKeyboardType.default #endif @State