• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

CardinalNow/iOS-CircleProgressView: CircleProgressView

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

CardinalNow/iOS-CircleProgressView

开源软件地址:

https://github.com/CardinalNow/iOS-CircleProgressView

开源编程语言:

Swift 55.2%

开源软件介绍:

iOS CircleProgressView

This control will allow a user to use code instantiated or interface builder to create and render a circle progress view.

This repository is referenced in the blog post: iOS CircleProgressView

NOTE: There is an Objective-C version of the control in this project as well. Cocopods however will only pull the swift project. If you need to integrate the Obj-C version, that is not supported at this time. May add a new podspec for that if someone wants to create a pull request for that feature.

Features

  • Increase or decreasing progress changes.
  • Variable track width.
  • Track image optional.
  • Track background color.
  • Track fill color.
  • Track border color.
  • Track border width.
  • Center fill color.
  • Center fill image.

Requirements

Xcode 8 Swift 3.0 iOS 8 +

Configuration

  • If you are using a swift only project simply copy CircleProgressView.swift to your project. Swift requires no specific imports.

  • If you are using a hybrid app where you are starting with an objective c project, you will need to import the swift class by full name.

#import "CircleProgressView-Swift.h"

CocoaPods

Current version is 1.0.12

pod 'CircleProgressView', :git => 'https://github.com/CardinalNow/iOS-CircleProgressView.git'

or

pod 'CircleProgressView', '~> 1.0'

Usage

CircleProgressView can be used via code or interface builder.

  • If configuring via code, use the traditional init methods and properties.

  • If using Interface Builder, CircleProgressView takes advantage of Xcode 6's new

@IBDesignable 

and

@IBInspectable 

properties that allow developers to render and configure custom controls in Interface Builder.

Animation

You can now update the progress view with animation using the new animated option.

Preview

Interface Builder live rendering.

Live Rendering

Interface Builder control configurations.

Controls

App Preview

Preview Simulator Preview Simulator

Author / License

Copyright Cardinal Solutions 2013. Licensed under the MIT license. LOGO




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap