Replying to Avatar Christian Selig

Anyone manage to get custom transitions working with interactive widgets on iOS 17? I know you can use some system ones, but if you want, for instance, a "grow then shrink" animation, I can't figure that out. Custom .transition()? Just .animation() somehow?

https://files.mastodon.social/media_attachments/files/110/872/249/119/169/921/original/ddb489d12b9cbff8.mp4

f4
f429d7ad... 2y ago

nostr:npub1p9kjc5uauqdfphar82xmq573tf3hnh3mcugkw3t6mjg2y76xkd3sum865w I’ve noticed only the transition animations work, but you can indeed use a custom transition. Perhaps you could use a matched geometry effect to transition between two instances of the same view? Or take a peak here: https://www.hackingwithswift.com/quick-start/swiftui/how-to-create-a-custom-transition

Reply to this note

Please Login to reply.

Discussion

No replies yet.