Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dioKaratzas/SlidingText
Swift UIView for sliding text with page indicator
https://github.com/dioKaratzas/SlidingText
Last synced: 6 days ago
JSON representation
Swift UIView for sliding text with page indicator
- Host: GitHub
- URL: https://github.com/dioKaratzas/SlidingText
- Owner: dioKaratzas
- License: apache-2.0
- Created: 2017-03-03T16:08:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-19T18:50:40.000Z (about 6 years ago)
- Last Synced: 2024-12-01T05:49:20.753Z (11 days ago)
- Language: Swift
- Size: 36.1 KB
- Stars: 53
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - SlidingText - Swift UIView for sliding text with page indicator. (UI / Label)
- awesome-ios-star - SlidingText - Swift UIView for sliding text with page indicator. (UI / Label)
README
# SlidingText for Swift
[![Version](https://img.shields.io/cocoapods/v/SlidingText.svg?style=flat)](https://cocoapods.org/pods/SlidingText)
[![License](https://img.shields.io/cocoapods/l/SlidingText.svg?style=flat)](https://cocoapods.org/pods/SlidingText)
[![Platform](https://img.shields.io/cocoapods/p/SlidingText.svg?style=flat)](https://cocoapods.org/pods/SlidingText)
## Requirements
__Requires iOS 8 or later and Xcode 6.1+__## Installation
SlidingText is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'SlidingText'
```## Usage with Storyboard
In Identity Inspector, connect the UIView to SlidingText Class and set the properties in Attribute Inspector.```
Text is separated by the '|n' delimiter
```## Usage with Code
```swift
let slidingText = SlidingText(frame: CGRect(x: 0, y: 30, width: self.view.frame.width, height: 120))myAwesomeViewController.view.addSubView = slidingText
...
```
## Functions
start()
pause()## Properties
labelColor
labelFont
labelSize
slidingTexts
pagerTintColor
pagerCurrentColor
timeToSlide
enableGestures
isPaused (Get)
currentIndex (Get)## Author
Dionysis Karatzas, [email protected]
## License
Copyright 2018 Dionysios Karatzas
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.