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
I am trying to transition my codebase to swift 6. However, I am getting a crash in Nuke library when compiled with Swift version 6. The crash happens when I am trying to load an svg image. For decoding svg images I am using SwiftSVG library. To use the library I am registering a decoder for a svg context upon app startup:
ImageDecoderRegistry.shared.register { context in
let isSVG = context.urlResponse?.url?.absoluteString.lowercased().hasSuffix(".svg") ?? false
return isSVG ? ImageDecoders.Empty(assetType: .svg) : nil
}
When I then go to a screen that needs to load an svg image I get the following error:
Everything works as expected when app is compiled under Swift version 5. Crash is still happening when I try registering just a simple decoder closure like this:
ImageDecoderRegistry.shared.register { context in
return nil
}
Any idea what could I be doing wrong? Thanks a lot!
The text was updated successfully, but these errors were encountered:
I am trying to transition my codebase to swift 6. However, I am getting a crash in Nuke library when compiled with Swift version 6. The crash happens when I am trying to load an svg image. For decoding svg images I am using
SwiftSVG
library. To use the library I am registering a decoder for a svg context upon app startup:When I then go to a screen that needs to load an svg image I get the following error:
Everything works as expected when app is compiled under Swift version 5. Crash is still happening when I try registering just a simple decoder closure like this:
Any idea what could I be doing wrong? Thanks a lot!
The text was updated successfully, but these errors were encountered: