last day (15 days later) » 

3:39 PM
0
A: Rotating ImageView using UIPanGestureRecognizer- Swift 3

Oleh ZayatsYou can build your implementation on this: import UIKit class ViewController: UIViewController { @IBOutlet weak var imageview: UIImageView! private var currentRotation: Rotation = .none /* Certain rotation points (rotation of 0º when x = 300 and a rotation of 180º when x = 190) *...

 
i think you are confused. i would like the image to rotate as i drag it across the screen.
 
@TheoStrauss edited my answer. Implemented the dragging, when image view reaches certain x points it rotates. Hope it's what you want ;]
 
oh my god this is awesome. i need some time to digest and implement and ill check back with you. ill give u the check mark for now!
 
Feel free to ask if you have any questions ;)
 
hmm. it gives me the error that it doesn't recognize gestureRecognizer. Is that bc there is a guard? Could you help me out with this?
 
3:39 PM
@TheoStrauss upload a screenshot
@TheoStrauss why downvoted? :(
 
 
1 hour later…
5:01 PM
I didn't downvote!!
So sorry do you want me to get a friend t upvote. I appreciate your help so much
Again, thank you for your help. If there is anything you need me to do, I'll try or do!
@OlehZayats
 
6:01 PM
@TheoStrauss can't see the error log in screenshot. Maybe you can upload the project? I will have a look
on GitHub or anywhere
 
 
6 hours later…
11:59 PM
thanks a ton for ur patience
ill get my friend to upvote ur response!
 

last day (15 days later) »