|
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 Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
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.