A custom UI control that allows user to trigger an event when long presses the controll. When user puts a finer on the control an internal timer is started and after minimumPressDuration is reached control begins new timer and starts animating the progress. Also a UIControlEvent.valueChanged event is sent. If user lifts the finger before requiredPressDuration is reached UIControlEvent.touchCancel control event is sent. If user holds finger longer than requiredPressDuration, progress animation is finished and UIControlEvent.primaryActionTriggered is called.
- animates long press duration
- detects single touch up inside without showing progress animation
- on scales down on touch down
- set title text for control states and control events
- set title text attributes for control states
- set background colors for control states
- supports UIAppearance