https://github.com/talebrafiepour/animatedclockview-ios
Simple Clock View For Showing Waiting Of A Process.
https://github.com/talebrafiepour/animatedclockview-ios
acv animate animatedclockview animatedclockview-ios circular clock ios progress progressbar progressview swift telegram telegramwaitingclock waiting
Last synced: 4 months ago
JSON representation
Simple Clock View For Showing Waiting Of A Process.
- Host: GitHub
- URL: https://github.com/talebrafiepour/animatedclockview-ios
- Owner: TalebRafiepour
- Created: 2019-09-23T08:09:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-23T09:03:12.000Z (over 6 years ago)
- Last Synced: 2025-09-22T04:29:43.431Z (4 months ago)
- Topics: acv, animate, animatedclockview, animatedclockview-ios, circular, clock, ios, progress, progressbar, progressview, swift, telegram, telegramwaitingclock, waiting
- Language: Swift
- Size: 166 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`:
```ruby
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](https://github.com/TalebRafiepour/AnimatedClockView-iOS) project to find out how easy it is working.
### Programmatically
```swift
//......
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()
}
```