You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.
I would like to know how I can keep the icons inside the circle in an upright position, whether the circle moves and changes position, as in the initial position. A great job with the library, Thank you!
The text was updated successfully, but these errors were encountered:
I tried the following in the touchesMoved function of CircleGestureRecognizer, as indicated on the page but turn the full thumb and not the icon, I tried turning the icon only, but it did not work properly. Thank you.
for thumb in view.thumbs {
let thumb = thumb as! CircleThumb
let deltaAngle: CGFloat = -CircleThumb.radiansFrom(degrees: 180) + atan2(view.transform.a,
view.transform.b) + atan2(thumb.iconView.transform.a, thumb.iconView.transform.b)
let current = thumb.transform.iconView
thumb.iconView..transform = current.rotated(by: deltaAngle)
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would like to know how I can keep the icons inside the circle in an upright position, whether the circle moves and changes position, as in the initial position. A great job with the library, Thank you!
The text was updated successfully, but these errors were encountered: