Giter Club home page Giter Club logo

mzcircleprogress's Introduction

MZCircleProgress

圆形进度条、弧形进度条

Cocoapods 引入

pod 'MZCircleProgress', '~> 0.0.1'

使用

let circleProgress = MZCircleProgress(frame: CGRect(x: 50, y: 100, width: 200, height: 200))
// 底条颜色
circleProgress.backLineColor = .red
// 底条宽度
circleProgress.backLineWidth = 10
// 进度条颜色
circleProgress.progressColor = .orange
// 进度条宽度
circleProgress.progressWidth = 10
// 中间文本框属性、可设置文字、文字颜色、字体
circleProgress.textLabel.textColor = .orange
circleProgress.textLabel.text = "10"
// 开始弧度
circleProgress.startAngle = CGFloat(-Double.pi / 4 * 5)
// 结束弧度
circleProgress.endAngle = CGFloat(Double.pi / 4)
// 进度比例(0~1),可通过控制ratio来实现进度动画
circleProgress.ratio = 0.7

mzcircleprogress's People

Contributors

1691665955 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.