All Projects → guoyingtao → Puffer

guoyingtao / Puffer

Licence: MIT license
A swift tool for mimicking a rotation dial

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to Puffer

HorizontalAndCircleTimeView
自定义水平刻度尺和圆形钟表刻度 可点击 可拖动 刻度 水平刻度划分为60份 圆形刻度划分为24份 可自定义修改
Stars: ✭ 14 (-12.5%)
Mutual labels:  dial
react-native-dial
A react native reusable and efficient dial knob element
Stars: ✭ 65 (+306.25%)
Mutual labels:  dial
ytcast
cast YouTube videos to your smart TV from command-line
Stars: ✭ 674 (+4112.5%)
Mutual labels:  dial

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].