We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a87bb7 commit 0a5bff0Copy full SHA for 0a5bff0
Sources/CustomDump/Conformances/KeyPath.swift
@@ -8,7 +8,7 @@ extension AnyKeyPath: CustomDumpStringConvertible {
8
return self.debugDescription
9
}
10
#endif
11
- #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
+ #if DEBUG && (os(iOS) || os(macOS) || os(tvOS) || os(watchOS))
12
keyPathToNameLock.lock()
13
defer { keyPathToNameLock.unlock() }
14
@@ -49,7 +49,7 @@ extension AnyKeyPath: CustomDumpStringConvertible {
49
50
51
52
-#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
+#if DEBUG && (os(iOS) || os(macOS) || os(tvOS) || os(watchOS))
53
private var keyPathToNameLock = NSRecursiveLock()
54
private var keyPathToName: [AnyKeyPath: String] = [:]
55
0 commit comments