SwiftKickMobile / SwiftMessages

A very flexible message bar for UIKit and SwiftUI.
MIT License
7.3k stars 742 forks source link

The drop - down is out of position #370

Closed CtrlJone closed 4 years ago

CtrlJone commented 4 years ago

image Hi, how come when my view pops up from the top, it's at -5 instead of 0 image

wtmoose commented 4 years ago

Because it is a spring animation and offsetting the Y position by 5 prevents a gap between the edge of the view and the top of the screen being visible during the bounce. There are ways to turn that off, but it is probably simpler to pad the top of your view by 5pt.

CtrlJone commented 4 years ago

Because it is a spring animation and offsetting the Y position by 5 prevents a gap between the edge of the view and the top of the screen being visible during the bounce. There are ways to turn that off, but it is probably simpler to pad the top of your view by 5pt.

I can understand that there will be offsets for the animation effect, but why doesn't the position return to the original normal position at the end of the animation? I think the end user might want to return to the original position at the end of the animation

wtmoose commented 4 years ago

b > a > 0

IMG_0098

Why do you think the end user cares if there is unseen top padding on your view?

CtrlJone commented 4 years ago

b > a > 0

IMG_0098

Why do you think the end user cares if there is unseen top padding on your view?

I see what you mean. Thank you for answering my questions