Change image when dark mode is enabled

I have an image on my main storyboard for my app. The problem is that the image contains a black text, so I would like to have that the image changes automatically to the Dark Mode version when the user turns Dark Mode on. How can I do this?

Thanks!

You can set Appearances in Image Assets.
After adding an Image Set, set up an image that supports dark mode.

Then connect the asset to the Image View.