A swift rotation dial.
You can use this tool to mimic a rotation dial just like what Photo.app does
- Show the whole dial with indicator
- Show only part of the dial.
- Rotation range can be limited.
- Default rotation center if the center of the dial. You can set your own rotation center.
- Customized colors.
- iOS 11.0
- Xcode 10.0
pod 'Puffer', '~> 1.0.3'
You may also need the code below in your pod file if compile errors happen because of different swift version.
post_install do |installer|
installer.pods_project.targets.each do |target|
if ['Mantis'].include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5.0'
end
end
end
end
- Create a default Rotation Dial
Puffer.createDial()
- Create a customized Rotation Dial
var config = Puffer.Config()
// Do some settings to config
...
Puffer.createDial(config: config)