Closed CtrlJone closed 4 years ago
Hi, how come when my view pops up from the top, it's at -5 instead of 0
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.
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
b > a > 0
Why do you think the end user cares if there is unseen top padding on your view?
b > a > 0
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