Skip to content

Commit f61f377

Browse files
committed
Made associated object keys compatible with Swift 6
1 parent c4be649 commit f61f377

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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)