Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cbess/autoscrolllabel
Provides marquee like UILabel scrolling, think Music.app track title scrolling. For Obj-C & Swift.
https://github.com/cbess/autoscrolllabel
marquee objective-c swift uilabel
Last synced: 12 days ago
JSON representation
Provides marquee like UILabel scrolling, think Music.app track title scrolling. For Obj-C & Swift.
- Host: GitHub
- URL: https://github.com/cbess/autoscrolllabel
- Owner: cbess
- License: mit
- Created: 2012-02-06T03:46:05.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2019-09-20T19:28:33.000Z (about 5 years ago)
- Last Synced: 2024-10-12T23:55:44.211Z (about 1 month ago)
- Topics: marquee, objective-c, swift, uilabel
- Language: Objective-C
- Homepage:
- Size: 341 KB
- Stars: 523
- Watchers: 24
- Forks: 107
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## AutoScrollLabel
A `UILabel` with auto scrolling for text that may be clipped by the view. Provides edge fading, speed adjustment, scroll direction, etc.
![screenshot](https://github.com/cbess/AutoScrollLabel/raw/master/AutoScrollLabelDemo/screenshot.png)
![screenshot2](https://github.com/cbess/AutoScrollLabel/raw/master/AutoScrollLabelDemo/screenshot2.png)CocoaPod: `AutoScrollLabel`
iOS 12, tvOS 12 and greater. For Non-ARC use v0.2.1.
```objc
#import
``````swift
import AutoScrollLabel
```
```objc
autoScrollLabel.text = @"This text may be clipped, but now it will be scrolled.";
autoScrollLabel.textColor = [UIColor systemBlueColor];
autoScrollLabel.labelSpacing = 35; // distance between start and end labels
autoScrollLabel.pauseInterval = 3.7; // seconds of pause before scrolling starts again
autoScrollLabel.scrollSpeed = 30; // pixels per second
autoScrollLabel.textAlignment = NSTextAlignmentCenter; // centers text when no auto-scrolling is applied
autoScrollLabel.fadeLength = 12.f; // length of the left and right edge fade, 0 to disable
```[Soli Deo gloria](https://perfectGod.com)
#### Real world use:
![app](http://static.solatunes.com//images/app/app-stage.jpg)
[Sola Tunes iOS App (Free)](https://itunes.apple.com/us/app/sola-tunes-free-music-for-all/id554537542?mt=8)
#### License
MIT - Copyright (c) 2019 Christopher Bess