Skip to content

Commit bbd4666

Browse files
committed
Cleanup
1 parent ae6957f commit bbd4666

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Sources/DiffableTextKitXPattern/Style.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,24 @@ Value: RangeReplaceableCollection, Value.Element == Character {
4040

4141
/// Marks a single character as the style's placeholder.
4242
@inlinable public func placeholders(_ character: Character,
43-
where predicate: @escaping (Character) -> Bool) -> Self {
43+
where predicate: @escaping (Character) -> Bool) -> Self {
4444
self.placeholders((character, predicate))
4545
}
4646

4747
/// Marks a single character as the style's placeholder.
4848
@inlinable public func placeholders(_ some: (Character, (Character) -> Bool)) -> Self {
49-
var S0 = self; S0.placeholders = .init(some); return S0
49+
var S0 = self; S0.placeholders = Placeholders(some); return S0
5050
}
5151

5252
/// Marks multiple characters as the style's placeholders.
5353
@inlinable public func placeholders(_ many: [Character: (Character) -> Bool]) -> Self {
54-
var S0 = self; S0.placeholders = .init(many); return S0
54+
var S0 = self; S0.placeholders = Placeholders(many); return S0
5555
}
5656

57+
//=------------------------------------------------------------------------=
58+
// MARK: Transformations
59+
//=------------------------------------------------------------------------=
60+
5761
/// Hides the pattern's suffix.
5862
///
5963
/// Characters after the last value, or from the first placeholder, are excluded.

Sources/DiffableTextKitXUIKit/Environment+KeyboardType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public extension View {
4545
///
4646
/// ```
4747
/// TextField("Amount", value: $amount, style: .currency("USD"))
48-
/// .keyboardType(.decimalPad)
48+
/// .diffableTextViews_keyboardType(.decimalPad)
4949
/// ```
5050
///
5151
/// **Notes**

Sources/DiffableTextKitXUIKit/Environment+MultilineTextAlignment.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public extension View {
4545
///
4646
/// ```
4747
/// DiffableTextField("Amount", value: $value, style: .number)
48-
/// .multilineTextAlignment(.trailing)
48+
/// .diffableTextViews_multilineTextAlignment(.trailing)
4949
/// ```
5050
///
5151
/// **Notes**

0 commit comments

Comments
 (0)