I have a save button:
Button(action: {
saveTapped()
}) {
Label("Save", systemImage: wasSaved ? "checkmark" : "square.and.arrow.down")
}
.contentTransition(.symbolEffect(.replace))
.disabled(wasSaved)
Now, I created a new custom icon and added it into the assets catalogue: "custom.square.and.arrow.down.badge.checkmark"
for when the wasSaved
state is true
. The issue I am facing is that to use it I need to use the method of Label with image:
, while to use the non custom symbol, I need to use systemImage:
.
So how is it possible to transition between the two?