프로젝트
GitHub에서 보기
malkouz/MKMagneticProgress
소개
Swift로 작성된 iOS용 원형 진행률 표시줄
웹 및 앱 개발What you can do
- Interface builder designable
- Highly customizable and flexible
- Written in Swift
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMKMagneticProgress
MKMagneticProgress
A circular progress bar for iOS written in Swift
Features
- Interface builder designable
- Highly customizable and flexible
- Easy to use
- Written in Swift
Installation
CocoaPods (Recommended)
- Install CocoaPods
- Add this repo to your
Podfile
target 'Example' do
# IMPORTANT: Make sure use_frameworks! is included at the top of the file
use_frameworks!
platform :ios, '8.0'
pod 'MKMagneticProgress'
end
- Run
pod install - Open up the
.xcworkspacethat CocoaPods created - Done!
Manually
Simply download the MKMagneticProgress.swift file from here into your project, make sure you point to your projects target
Usage
Interface Builder
Simply drag a UIView into your storyboard. Make sure to subclass MKMagneticProgress and that the module points MKMagneticProgress.
Design your heart out

Usage
import MKMagneticProgress
@IBOutlet weak var magProgress:MKMagneticProgress!
override func viewDidLoad() {
magProgress.setProgress(progress: 0.5, animated: true)
magProgress.progressShapeColor = UIColor.blue
magProgress.backgroundShapeColor = UIColor.yellow
magProgress.titleColor = UIColor.red
magProgress.percentColor = UIColor.black
magProgress.lineWidth = 10
magProgress.orientation = .top
magProgress.lineCap = .round
magProgress.title = "Title"
magProgress.percentLabelFormat = "%.2f%%"
}
Example project
Take a look at the example project over here
- Download it
- Open the
Example.xcworkspacein Xcode - Enjoy!
Author
Moayad Al kouz, [email protected]
Twitter : @malkouzLicense
MKMagneticProgress is available under the MIT license. See the LICENSE file for more info.
관련 프로젝트 살펴보기
불러오는 중…