Skip to content

Commit a69a7c5

Browse files
authored
Audit GestureTag type (#4)
1 parent ad54606 commit a69a7c5

5 files changed

Lines changed: 13 additions & 2 deletions

File tree

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
//
2+
// GestureTag.swift
3+
// OpenGestures
4+
//
5+
// Audited for 9126.1.5
6+
// Status: Complete
7+
18
// MARK: - GestureTag
29

3-
public struct GestureTag: Hashable, Sendable, ExpressibleByStringLiteral, RawRepresentable {
4-
public var rawValue: String
10+
public struct GestureTag: Hashable, Sendable, ExpressibleByStringLiteral, CustomStringConvertible {
11+
public let rawValue: String
512

613
public init(rawValue: String) {
714
self.rawValue = rawValue
@@ -10,4 +17,8 @@ public struct GestureTag: Hashable, Sendable, ExpressibleByStringLiteral, RawRep
1017
public init(stringLiteral value: String) {
1118
self.rawValue = value
1219
}
20+
21+
public var description: String {
22+
rawValue
23+
}
1324
}
File renamed without changes.
File renamed without changes.

Sources/OpenGestures/GestureCore/NestedCustomStringConvertible.swift renamed to Sources/OpenGestures/Util/NestedCustomStringConvertible.swift

File renamed without changes.

Tests/OpenGesturesCompatibilityTests/GestureTrait/GestureTraitCompatibilityTests.swift renamed to Tests/OpenGesturesCompatibilityTests/Core/GestureTraitCompatibilityTests.swift

File renamed without changes.

0 commit comments

Comments
 (0)