Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dingdingkim/ddviewswitcher
😊 With DDViewSwitcher, you can simply implement the effect of scrolling the view with just two lines. Like android TextSwitcher
https://github.com/dingdingkim/ddviewswitcher
animation ios like-android ranking-ui swift swift3 switcher textswitcher ui
Last synced: 3 months ago
JSON representation
😊 With DDViewSwitcher, you can simply implement the effect of scrolling the view with just two lines. Like android TextSwitcher
- Host: GitHub
- URL: https://github.com/dingdingkim/ddviewswitcher
- Owner: DingdingKim
- License: other
- Created: 2017-06-22T18:19:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T17:56:35.000Z (about 6 years ago)
- Last Synced: 2024-10-12T14:23:09.527Z (3 months ago)
- Topics: animation, ios, like-android, ranking-ui, swift, swift3, switcher, textswitcher, ui
- Language: Swift
- Homepage:
- Size: 7.37 MB
- Stars: 45
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DDViewSwitcher
===================## Introduction
Hello !! 😊
With DDViewSwitcher, you can simply implement the effect of scrolling the view with just two lines.
Like android's TextSwitcher or realtime ranking UI(text scroll up animaiton repeatedly.)## Demo
![Sample Main menu](https://github.com/DingdingKim/DDViewSwitcher/blob/master/Screenshot/main.gif)
![DDTextSwitcher](https://github.com/DingdingKim/DDViewSwitcher/blob/master/Screenshot/textSwitcher.gif)
![DDImageSwitcher](https://github.com/DingdingKim/DDViewSwitcher/blob/master/Screenshot/imageViewSwitcher.gif)
![DDTextSwitcher(Manually)](https://github.com/DingdingKim/DDViewSwitcher/blob/master/Screenshot/manualTextSwitcher.gif)
![DDViewSwitcher](https://github.com/DingdingKim/DDViewSwitcher/blob/master/Screenshot/viewSwitcher.gif)## Installation
### CocoaPods
DDViewSwitcher is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "DDViewSwitcher"
```## Usage
Just three line!
```Swift
//**************************************************
// This code is simplest way to make DDTextSwitcher !
// You want to change attributes and more detail, look other ViewController in this sample !
//**************************************************let textSwitcher = DDTextSwitcher(frame: self.view.bounds, data: ["item 1", "item 2"], scrollDirection: .vertical)
self.view.addSubview(textSwitcher)
textSwitcher.start()```
## Author
Dingding Kim, [email protected]
## License
DDViewSwitcher is available under the MIT license. See the LICENSE file for more info.