In Assets.xcassets
, there is an ability to add additional images that will automatically switch based on the Appearances. This works well for static images but I'm trying to figure out how to do this for downloaded images.
Is there a way to either set the dark mode version of an Image
on init or is there a function in SwiftUI that will allow you to detect whether the current appearance is dark so that a different image URL can be served?