Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.44 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.44 KB

AnimatedClockView-iOS

Simple Clock View For Showing Waiting Of A Process.

Installation

CocoaPods

To integrate AnimatedClockView into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, '9.0'
use_frameworks!

target 'YourProjectName' do
  pod 'AnimatedClockView'
end

And then remember to import AnimatedClockView module before using it.

Manually

You could directly copy and add the folder AnimatedClockView which contains 'AnimatedClockView.swift' file to your project.

Usage

You could use AnimatedClockView like you use UIView, create and layout it programmatically, or get everything done with Storyboard and XIB. Additionally, clone this Demo project to find out how easy it is working.

Programmatically

    //......
    let animatedClockView = AnimatedClockView()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.animatedClockView.frame = CGRect(x: 50, y: 50, width: 200, height: 200)
        self.view.addSubview(self.animatedClockView)
        
        self.animatedClockView.animate = true
        self.animatedClockView.clockColor = UIColor.red
        //or if you want to reset clock you can call resetClcok()
        //self.animatedClockView.resetClock()
        
    }