Skip to content

Commit 15ea03a

Browse files
committed
Cleanup.
1 parent 5d52d3d commit 15ea03a

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Sources/DiffableTextStylesXNumeric/Helpers/Links.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ import Foundation
1414
//*============================================================================*
1515

1616
/// A mapping model between components and characters.
17-
///
18-
/// It ensures that each component is bidirectionally mapped to a character.
19-
///
2017
@usableFromInline struct Links<Component: Glyph> {
2118

2219
//=------------------------------------------------------------------------=
@@ -39,7 +36,7 @@ import Foundation
3936
// MARK: Initializers - Indirect
4037
//=------------------------------------------------------------------------=
4138

42-
/// Creates an instance linking all components to their corresponding character.
39+
/// Creates an instance linking all components to a character.
4340
@inlinable init(character: (Component) throws -> Character) rethrows {
4441
let components = Component.allCases
4542
self.init(count: components.count)
@@ -68,7 +65,7 @@ import Foundation
6865
// MARK: Accessors
6966
//=------------------------------------------------------------------------=
7067

71-
/// All components are mapped, so force unwrapping characters is OK.
68+
/// All components map to a character, so force unwrapping characters is OK.
7269
@inlinable subscript(component: Component) -> Character {
7370
characters[component]!
7471
}

Sources/DiffableTextViewsXiOS/DiffableTextField.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ public struct DiffableTextField<Style: DiffableTextStyleXiOS>: UIViewRepresentab
6666
//=--------------------------------------=
6767
context.coordinator.downstream = ActorTextField(uiView)
6868
context.coordinator.downstream.transform(Style.onSetup)
69-
context.coordinator.downstream.transform(
70-
context.environment.diffableTextField_onSetup)
69+
context.coordinator.downstream.transform(context.environment.diffableTextField_onSetup)
7170
//=--------------------------------------=
7271
// MARK: Done
7372
//=--------------------------------------=
@@ -117,8 +116,7 @@ public struct DiffableTextField<Style: DiffableTextStyleXiOS>: UIViewRepresentab
117116
self.upstream = upstream
118117
self.environment = environment
119118
self.synchronize()
120-
self.downstream.transform(
121-
environment.diffableTextField_onUpdate)
119+
self.downstream.transform(environment.diffableTextField_onUpdate)
122120
}
123121

124122
//=--------------------------------------------------------------------=

0 commit comments

Comments
 (0)