Tuesday, 17 April 2018
Sunday, 15 April 2018
Star Rating Control With Effortless Dragging Feature Using Swift (iOS)
An Smooth Draggable Star Rating Control
I have seen many apps those who are not having any rating view inside that. Some are having the feature but not so smooth as per the user's perspective. That's why I have created an easy to use pod for draggable rating view with good user experience.
Some fantastic features:
- Easy smooth color change dragging can be seen.- Any color support with the multiple stars. You can give low opacity to high opacity color to each star for looking awesome color change.
- Using this control in Storyboard or within XIB is very easy and developer can easily see the changes applied to the control such as star selected color and Rate points in the Interface builder.
- Easy to use within any UIViewController or UIView.
- Developer can change the fill color of Star as per his requirement very easily.
- Easy and strong support of IBDesignable and IBInspectable (You can see the changes very easily in Interface builder).
- Easy and strong support of IBDesignable and IBInspectable (You can see the changes very easily in Interface builder).
- The Rate Points can be easily set in Interface builder and as per that the star will be filled.
- The fill color can be easily changed via Inteface builder or at run time.
- Can easily change colors.
- Gives exact Rate points in float(e.g. 1.2, 2.3, 4.9 etc) as per the your drag position.
- Default two buttons are there such as "Rate Now", "Cancel".
- Supports Multiple buttons (requires an array of string to be passed for button names).
- Easy button click delegates are provided via protocols.
Usage Guide:
You want to add pod 'StarRatingDraggable', '~> 1.0' similar to the following to your podfile:
target 'MyApp' do
pod 'StarRatingDraggable', '~> 1.0'
end
Then run a pod install inside your terminal or from CocoaPods.app.
target 'MyApp' do
pod 'StarRatingDraggable', '~> 1.0'
end
Then run a pod install inside your terminal or from CocoaPods.app.
Without any Images used :)
Cocoapod url - https://cocoapods.org/pods/StarRatingDraggable
For source code please visit my GitHub Url
Below are the screenshots and gif is attached for demonstration purpose.
Subscribe to:
Posts (Atom)