File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
DiffableTextStylesXNumeric/Helpers Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 //=--------------------------------------------------------------------=
You can’t perform that action at this time.
0 commit comments