An open API service indexing awesome lists of open source software.

https://github.com/guoyingtao/puffer

A swift tool for mimicking a rotation dial
https://github.com/guoyingtao/puffer

dial rotationdial swiftdial

Last synced: 11 months ago
JSON representation

A swift tool for mimicking a rotation dial

Awesome Lists containing this project

README

          


Puffer


swift 5.0 badge
platform iOS badge
license MIT badge

# Puffer
A swift rotation dial.


Puffer
Puffer
Puffer

You can use this tool to mimic a rotation dial just like what Photo.app does


Puffer demo

## Features

* 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.

## Requirements
* iOS 11.0+
* Xcode 10.0+

## Install

### CocoaPods

```ruby
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.

```ruby
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
```
## Usage

* Create a default Rotation Dial
```swift
Puffer.createDial()
```

* Create a customized Rotation Dial
```swift
var config = Puffer.Config()

// Do some settings to config
...

Puffer.createDial(config: config)
```

Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY