SamuKata
kavsoft
kavsoft

patreon


SwiftUI Bottom Sheet Animation like Apple Music App - Matched Geometry - Complex UI - Xcode 14

Source Code For SwiftUI Bottom Sheet Animation like Apple Music App - Matched Geometry - Complex UI - Xcode 14.


Download Code ๐Ÿ‘‡

SwiftUI Bottom Sheet Animation like Apple Music App - Matched Geometry - Complex UI - Xcode 14

Comments

Hi the velocity extension no longer works

Xin Chen

This is a bit buggy: 1. When in Listen Now. Expand Sheet and Collapse Sheet 2. Now Click on Account Info 3. Now Expand and Collapse Sheet 4. You'll see that the tab bar disappears....

Sandeep A

An addition to my point 2nd point. I've just checked out Apple's new Classical app. The player's collapsing animation is here little different to the regular Music app, very similar to your approach. Did they steal your code? ๐Ÿง๐Ÿ˜ƒ

Chris R

Hey, excellent work! There are many things you improved from your first attempt on this you made a while a go and some nice new tricks I've learned like for instance how to get the velocity of the drag gesture in SwiftUI ๐Ÿ‘ 1. One imho major thing this is still missing in comparison to Apple's Music app is the zoom transformation of the presenting view like you get with SwiftUI's native sheet for free. 2. A small difference I noticed and iirc your previous version did it a little better is the collapsing animation. In the Music app there is this bounce effect somehow, your animation here looks rather linear. 3. Do you know if it's basically possible in native SwiftUI to implement such a custom modal view with drag to dismiss feature if the modal's main view is a ScrollView? In my experiments I just couldn't get it to work, because ScrollView seems to override the DragGesture's vertical events.

Chris R


More Creators