EFPrefix / Efautoscrolllabel
Licence: mit
A label which can scroll when text length beyond the width of label.
Stars: ✭ 111
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Efautoscrolllabel
Cltypinglabel
iOS UILabel with character by character typing /typewriter animation
Stars: ✭ 192 (+72.97%)
Mutual labels: cocoapods, uilabel
Uilabel Copyable
A simple category to add copy functionality to UILabel.
Stars: ✭ 113 (+1.8%)
Mutual labels: cocoapods, uilabel
Swifticonfont
Icons fonts for iOS (Font Awesome 5, Iconic, Ionicon, Octicon, Themify, MapIcon, MaterialIcon, Foundation 3, Elegant Icon, Captain Icon)
Stars: ✭ 1,094 (+885.59%)
Mutual labels: cocoapods, uilabel
Fscalendar
A fully customizable iOS calendar library, compatible with Objective-C and Swift
Stars: ✭ 9,829 (+8754.95%)
Mutual labels: cocoapods
Sparse
Sparse is a simple parser-combinator library written in Swift.
Stars: ✭ 104 (-6.31%)
Mutual labels: cocoapods
Everlayout
Reusable, downloadable, up-datable iOS layouts
Stars: ✭ 103 (-7.21%)
Mutual labels: cocoapods
Datepicker
A Date Picker with Calendar for iPhone and iPad Apps.
Stars: ✭ 103 (-7.21%)
Mutual labels: cocoapods
Tkkeyboardcontrol
TKKeyboardControl adds keyboard awareness and scrolling dismissal (like iMessages app) to any view with only 1 line of code for Swift.
Stars: ✭ 110 (-0.9%)
Mutual labels: cocoapods
Pincodeinputview
A input text view for entering pin code.
Stars: ✭ 108 (-2.7%)
Mutual labels: cocoapods
Appdevkit
AppDevKit is an iOS development library that provides developers with useful features to fulfill their everyday iOS app development needs.
Stars: ✭ 1,426 (+1184.68%)
Mutual labels: cocoapods
Ccnpreferenceswindowcontroller
CCNPreferencesWindowController is an Objective-C subclass of NSWindowController that automatically manages your custom view controllers for handling app preferences.
Stars: ✭ 105 (-5.41%)
Mutual labels: cocoapods
Swifterswift
A handy collection of more than 500 native Swift extensions to boost your productivity.
Stars: ✭ 10,706 (+9545.05%)
Mutual labels: cocoapods
Tkdotsegment
TKDotSegment is a segment with dot animation
Stars: ✭ 103 (-7.21%)
Mutual labels: cocoapods
Nextgrowingtextview
📝 The next in the generations of 'growing textviews' optimized for iOS 8 and above.
Stars: ✭ 1,540 (+1287.39%)
Mutual labels: cocoapods
Pocketsvg
Easily convert your SVG files into CGPaths, CAShapeLayers, and UIBezierPaths
Stars: ✭ 1,483 (+1236.04%)
Mutual labels: cocoapods
A label which can scroll when text length beyond the width of label, in Swift.
Overview
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Version | Needs |
---|---|
1.x | XCode 8.0+ Swift 3.0+ iOS 8.0+ |
4.x | XCode 9.0+ Swift 4.0+ iOS 8.0+ |
5.x | XCode 10.2+ Swift 5.0+ iOS 8.0+ |
Installation
EFAutoScrollLabel is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "EFAutoScrollLabel"
Setup
Simply initialize a EFAutoScrollLabel
the same way you set up a regular UILabel
:
let myLabel = EFAutoScrollLabel(frame: CGRect(x: 10, y: 10, width: 200, height: 40))
self.view.addSubview(myLabel)
Use
1. Import EFAutoScrollLabel module where you want to use it:
import EFAutoScrollLabel
EFAutoScrollLabel
and set some parameter:
2. Initialize a let myLabel = EFAutoScrollLabel(frame: CGRect(x: 10, y: 10, width: 200, height: 40))
myLabel.backgroundColor = UIColor(red: 253.0 / 255.0, green: 255.0 / 255.0, blue: 234.0 / 255.0, alpha: 1)
myLabel.textColor = UIColor(red: 249.0 / 255.0, green: 94.0 / 255.0, blue: 22.0 / 255.0, alpha: 1)
myLabel.font = UIFont.systemFont(ofSize: 13)
myLabel.labelSpacing = 30 // Distance between start and end labels
myLabel.pauseInterval = 1.7 // Seconds of pause before scrolling starts again
myLabel.scrollSpeed = 30 // Pixels per second
myLabel.textAlignment = NSTextAlignment.left // Centers text when no auto-scrolling is applied
myLabel.fadeLength = 12 // Length of the left and right edge fade, 0 to disable
myLabel.scrollDirection = EFAutoScrollDirection.left
self.view.addSubview(myLabel)
AutoLayout
is also supported.
3. PS
The first version of EFAutoScrollLabel is converted from AutoScrollLabel.
Apps using EFAutoScrollLabel
Author
EyreFree, [email protected]
License
EFAutoScrollLabel is available under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].