maustinstar / swiftui-drawer

A SwiftUI bottom-up controller, like in the Maps app. Drag to expand or minimize.
MIT License
934 stars 36 forks source link

issue with onDrag... #19

Open LilMoke opened 1 year ago

LilMoke commented 1 year ago

Hello,

I added the onDrag modifier to my drawer so that I could animate the image I have that is used to pull up and down the drawer, but it look like onAppear is not called.

What would be the best way to ue you package and animate the drawer image?

maustinstar commented 1 year ago

Hi, thanks for checking out this package.

I think this package has been replaced and obsoleted by SwiftUI's presentationDetents, so I encourage you to try that alternative.

LilMoke commented 1 year ago

Yea, that was where I started, but I think the SwiftUI Implementation will not let you put the sheet over a tabview, at lest I could not find out =how to do it or find any example. I know it can be done in UIKit, but I dont think they brought that to SwiftUI yet, so I was looking for an alternative. Thank you for the reply, I appreciate it.