Skip to content

guoyingtao/Puffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Usage

  • 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)
Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

About

A swift tool for mimicking a rotation dial

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published