You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building with Xcode 15.3 shows 2 new concurrency warnings:
Sources/Nuke/Processing/ImageProcessors+Resize.swift:88:60
Main actor-isolated static property 'scale' can not be referenced from a non-isolated context; this is an error in Swift 6
Sources/Nuke/Internal/Graphics.swift:198:44
Main actor-isolated static property 'scale' can not be referenced from a non-isolated context; this is an error in Swift 6
Screen is indeed marked @MainActor:
@MainActor
enum Screen {
#if os(iOS) || os(tvOS)
/// Returns the current screen scale.
static let scale: CGFloat = UIScreen.main.scale
#elseif os(watchOS)
/// Returns the current screen scale.
static let scale: CGFloat = WKInterfaceDevice.current().screenScale
#else
/// Always returns 1.
static let scale: CGFloat = 1
#endif
}
The text was updated successfully, but these errors were encountered:
Building with Xcode 15.3 shows 2 new concurrency warnings:
Screen is indeed marked
@MainActor
:The text was updated successfully, but these errors were encountered: