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 de8ba65 commit f2011a5Copy full SHA for f2011a5
Sources/CustomDump/Conformances/KeyPath.swift
@@ -7,7 +7,7 @@ extension AnyKeyPath: CustomDumpStringConvertible {
7
return self.debugDescription
8
}
9
#endif
10
- #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
+ #if DEBUG && (os(iOS) || os(macOS) || os(tvOS) || os(watchOS))
11
keyPathToNameLock.lock()
12
defer { keyPathToNameLock.unlock() }
13
@@ -44,7 +44,7 @@ extension AnyKeyPath: CustomDumpStringConvertible {
44
45
46
47
-#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
+#if DEBUG && (os(iOS) || os(macOS) || os(tvOS) || os(watchOS))
48
private var keyPathToNameLock = NSRecursiveLock()
49
private var keyPathToName: [AnyKeyPath: String] = [:]
50
0 commit comments