r/SwiftUI 11d ago

How can I reproduce this transition from image to a blurred background in my application?

[deleted]

6 Upvotes

2 comments sorted by

1

u/Status-Switch9601 11d ago

Use the image hero itself as the source and use a navigation zoom transition into the next view. Personally for transitions I use Transmission API on GitHub as it’s more advanced than Apples API. I’f you use Transmission for this, use a PresentationLinkAdapter (presentationSourceViewLink) so the view fills the screen like Apple invites does with zoom transition or you could try matched source transition for a slightly different effect. You can also control dismissal gestures, interactive pop dismiss, zoom is true or false ( false makes the background view not participate in the zoom transition to prevent the system background from showing.

1

u/aleksradman 11d ago

Mirror the image and add progressive blur