Rotary knob with table-like momentum
Rotary knob with table-like momentum
- Subject: Rotary knob with table-like momentum
- From: Eric Dolecki <email@hidden>
- Date: Mon, 23 Jan 2017 02:27:24 +0000 (UTC)
Hey all,
Does anyone have a control (knob) that you can turn with a horizontal swipe, but snaps to detents. It doesn't travel 360 degrees, but you can throw it and it rubber bands at its minimum or maximum detent values. I can't seem to get my head around getting all of it and I'm frustrated. An example range would be 0-15 with 8 degrees between each detent value. So throw, slow turning, both with snapping to avoid value (always an Int).
The knob will be quite large so the snapping will make sense.
Even a stupid just rotating UIView box with the behavior example would be much, much appreciated!!! Doing this in Swift FYI.
Eric
Get Outlook for iOS
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden