|
Swiping the shape that takes up the entire view triggers its descention to the bottom of the screen. The view is divided into eleven bands, from ten to zero (the last being the buffer to allow the shape to remain in view so it may be swiped back up to reset), each one representing a second on the timer:
My issue relates to the speed of the shape moves (speed) which plays havock with the timer as it will not stop. |
|
I managed to get a system to allow for the smooth action of increasing and decreasing a permanent shape from the bottom of the view, but it always starts from top, when it should be a tab (50px) at the bottom:
The issue is with positioning, which forces the text (blue block) to take up the entire view, when I just want it to be a small 50px high shape at the bottom of the view.
|
|
This system was more reliable as it could be dragged a lot faster, withouth the shape set after the onEnded event (which means that it has to count to zero before it can be reshaped i.e. dragged up once more):
|
SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.