File tree Expand file tree Collapse file tree
Sources/OpenGestures/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -176,34 +176,12 @@ extension GestureTraitCollection: Sequence {
176176
177177// MARK: - GestureTraitCollection + CustomStringConvertible
178178
179- @_spi ( Private)
180179extension GestureTraitCollection : NestedCustomStringConvertible {
181-
182180 package func populateNestedDescription( _ nested: inout NestedDescription ) {
183- for trait in _traits. values {
184- var traitNested = NestedDescription (
185- options: [ ] ,
186- customPrefix: nil ,
187- customSuffix: nil ,
188- depth: nested. depth + 1 ,
189- target: trait,
190- buffer: [ ]
191- )
192- trait. populateNestedDescription ( & traitNested)
193- for item in traitNested. buffer {
194- nested. append ( item)
195- }
196- }
197- }
198-
199- public var label : String { " GestureTraitCollection " }
200-
201- public var description : String {
202- " [ \( _traits. values. map ( \. description) . joined ( separator: " , " ) ) ] "
203- }
204-
205- public var debugDescription : String {
206- description
181+ nested. options. formUnion ( [ . hideTypeName, . compact] )
182+ nested. customPrefix = " "
183+ nested. customSuffix = " "
184+ nested. append ( _traits. values)
207185 }
208186}
209187
You can’t perform that action at this time.
0 commit comments