Skip to content

Commit df3e2fc

Browse files
committed
Made associated object keys compatible with Swift 6
1 parent e939ba9 commit df3e2fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/InterposeKit/Hooks/HookStrategy/ObjectHookStrategy/ObjectHookRegistry.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ internal enum ObjectHookRegistry {
3434

3535
}
3636

37-
fileprivate var ObjectHookRegistryKey: UInt8 = 0
37+
fileprivate nonisolated(unsafe) var ObjectHookRegistryKey: UInt8 = 0
3838

3939
fileprivate class WeakReference<T: AnyObject>: NSObject {
4040

Sources/InterposeKit/Hooks/HookStrategy/ObjectHookStrategy/ObjectHookStrategy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,4 +294,4 @@ extension NSObject {
294294

295295
}
296296

297-
private var ObjectHookCountKey: UInt8 = 0
297+
private nonisolated(unsafe) var ObjectHookCountKey: UInt8 = 0

0 commit comments

Comments
 (0)