UIKit dynamics based activity indicator that works like a real fidget spinner. Your users will be much more entertained when they have an option to spin a spinner while your app is loading data/ uncompressing database/ mining [you_name_it]coins etc. Easily customizable via Interface Builder.
- Simple and quick integration
- Customizable via Interface Builder and from code
- Fun
- via Cocoapods
use_frameworks!
platform :ios, "9.0"
target 'YourTarget' do
pod 'SpinnerActivityIndicator', :git => "https://github.com/tkach/SpinnerActivityIndicator"
end
- manual
Copy Pod folder from this repo to your project
- Add UIView to your xib or storyboard file, change it's class to SpinnerActivityIndicator.
- Add constraints (Width and height define touchable area for user interaction so it should be big enough (> 100 would be great)
- Customize color and isAnimating properties in Interface Builder
- If you need custom Spinner image or size, set
style
property from code:
@IBOutlet weak var spinnerActivity: SpinnerActivityIndicator!
override func viewDidLoad() {
super.viewDidLoad()
spinnerActivity.style = .custom(size: mySize, image: mySpinnerImage)
}