Xcode iOS Swift Programming Tutorial - How to Create a Draggable View (UIPanGestureRecognizer))

preview_player
Показать описание
In this video, I will show you how to create a draggable view or window using UIPanGestureRecognizer. You can use this if you have an application that opens a toolbar that the user can drag to their desired location.

MUSIC -
Illenium & Gryffin Ft. Daya - Feel Good [Remake + FLP] by Dylan Tallchief
Рекомендации по теме
Комментарии
Автор

Thank you for this. A startup I that applied to has this as one of their requirements for the take-home test.

belladom
Автор

Firstly, Thanks a lot for the simple solution. Its working pretty neat in my app where i am making use of this implementation for Secondary Camera view ( my own video within Video calling screen ). But the problem I am facing is when the timer is started and its refreshing the timer label every second in the main thread. As soon as timer label starts, the view gets back to the original place and later even if I drag the view it gets back to original place and its not functional untill the timer label is updating every second in the main thread. May i know what i am missing here in this implementation.

rohanjain