Is it possible to use the replace effect with custom symbols and system symbols in SwiftUI?

Hi! I was wondering if it is possible to use the replace effect from a custom symbol to a system symbol. I've tried a if/else to switch from an Image with a custom symbol to an Image with a system symbol to no avail. I assume it needs to be the same Image view when transitioning so I think that's my problem, is there something I'm missing?