https://github.com/prolificinteractive/tickercounter
A counter with a ticker animation.
https://github.com/prolificinteractive/tickercounter
Last synced: over 1 year ago
JSON representation
A counter with a ticker animation.
- Host: GitHub
- URL: https://github.com/prolificinteractive/tickercounter
- Owner: prolificinteractive
- License: mit
- Created: 2018-02-16T21:30:09.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2019-05-03T15:04:11.000Z (about 7 years ago)
- Last Synced: 2025-01-20T20:53:29.742Z (over 1 year ago)
- Language: Swift
- Size: 375 KB
- Stars: 2
- Watchers: 21
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# TickerCounter
## Description
A counter with a ticker animation.
## Requirements
* iOS 9.0+
## Installation
### CocoaPods
TickerCounter is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your `Podfile`:
```ruby
pod 'TickerCounter', :git => 'https://github.com/ProlificInteractive/TickerCounter.git', :tag => '0.2.0'
```
## Usage
Create a `TickerCounter` instance and tell it to animate:
```swift
let tickerCounter = TickerCounter(frame: CGRect(x: 0, y: 100, width: view.frame.width, height: 65))
tickerCounter.value = 12345
view.addSubview(tickerCounter)
tickerCounter.startAnimation()
```
## Contributing to TickerCounter
To report a bug or enhancement request, feel free to file an issue under the respective heading.
If you wish to contribute to the project, fork this repo and submit a pull request. Code contributions should follow the standards specified in the [Prolific Swift Style Guide](https://github.com/prolificinteractive/swift-style-guide).
## License

Copyright (c) 2018 Prolific Interactive
TickerCounter is maintained and sponsored by Prolific Interactive. It may be redistributed under the terms specified in the [LICENSE] file.
[LICENSE]: ./LICENSE