Skip to content

Commit 4dfe312

Browse files
Resolved Swift 5.9 compilation warning related to UnsafeRawPointer object conversion (#243)
1 parent b257a96 commit 4dfe312

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ViewEnvironmentUI/Sources/ViewEnvironmentPropagating.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,11 @@ public final class ViewEnvironmentUpdateObservationLifetime {
401401
}
402402

403403
private enum ViewEnvironmentPropagatingNSObjectAssociatedKeys {
404-
static var needsEnvironmentUpdate = NSObject()
405-
static var needsUpdateObservers = NSObject()
406-
static var ancestorOverride = NSObject()
407-
static var descendantsOverride = NSObject()
408-
static var customizations = NSObject()
404+
static var needsEnvironmentUpdate: UInt8 = 0
405+
static var needsUpdateObservers: UInt8 = 0
406+
static var ancestorOverride: UInt8 = 0
407+
static var descendantsOverride: UInt8 = 0
408+
static var customizations: UInt8 = 0
409409
}
410410

411411
extension ViewEnvironmentPropagating {

0 commit comments

Comments
 (0)