>

No Description

FFProgress.swift 1.0KB

    // // FFProgress.swift // PaiAi // // Created by zhengjianfei on 2017/3/22. // Copyright © 2017年 FFIB. All rights reserved. // import UIKit class FFProgress: UIView { @IBInspectable var lineColor = UIColor.red @IBInspectable var lineWidth: CGFloat = 6 let progressLayer = CAShapeLayer() var strokeEnd: CGFloat = 0.0 { didSet { progressLayer.strokeEnd = strokeEnd } } override func draw(_ rect: CGRect) { let bezierPath = UIBezierPath(arcCenter:CGPoint(x: self.width / 2, y: self.height / 2), radius: self.width / 2, startAngle: .pi / 180.0, endAngle: .pi / -2.0, clockwise: true) progressLayer.frame = self.bounds progressLayer.fillColor = UIColor.clear.cgColor progressLayer.strokeColor = lineColor.cgColor progressLayer.lineCap = kCALineCapRound progressLayer.lineWidth = lineWidth progressLayer.strokeEnd = strokeEnd progressLayer.path = bezierPath.cgPath self.layer.addSublayer(progressLayer) } }
kodo - Gogs: Go Git Service

説明なし

Brightcells: 4f87058e1c Add patch_api 9 年 前
..
static 0a58248c81 Realize tour guide upload photo when auth in FE 9 年 前
uwsgi.bak df1df69fe3 add api upgrade/splash 10 年 前
__init__.py 4defb80fdc gogs first init 11 年 前
basemodels.py 4f87058e1c Add patch_api 9 年 前
func_settings.py b68c637678 update redis-extensions 10 年 前
settings.py 0e7b5eb1af Update order_by of group session photos 9 年 前
urls.py 7049ae7e19 mini/userinfo 9 年 前
urls_api.py 90fd7187d8 file md5 9 年 前
views.py fabef63211 set line_length=200 for isort 10 年 前
wsgi.py fabef63211 set line_length=200 for isort 10 年 前