Swiftpack.co -  nnsnodnb/ScrollFlowLabel as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
nnsnodnb/ScrollFlowLabel
Display long text on UILabel while scrolling automatically.
.package(url: "https://github.com/nnsnodnb/ScrollFlowLabel.git", from: "1.0.2")

ScrollFlowLabel

Display long text on UILabel while scrolling automatically.

Swift 5.0.1 MIT License Release

Installation

CocoaPods

pod 'ScrollFlowLabel'

Carthage

github "nnsnodnb/ScrollFlowLabel" ~> 1.0.0

Swift Package Manager

// swift-tools-version:5.0
import PackageDescription

let package = Package(
    name: "SampleApp",
    dependencies: [
        .package(name: "ScrollFlowLabel",
                 url: "https://github.com/nnsnodnb/ScrollFlowLabel.git",
                 from: "1.0.0")
    ],
    targets: [
        .target(name: "SampleApp", dependencies: ["ScrollFlowLabel"])
    ]
)

Example

Write source

let label = ScrollFlowLabel()
label.text = "Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor..."
label.textColor = .black
label.textAlignment = .left
label.font = .systemFont(ofSize: 20)
label.pauseInterval = 2
label.scrollDirection = .left
label.scrollSpeed = 20
label.observeApplicationState() // If you want to observe UIApplicationState.

Interface Builder

Set UIView to any place and change Custom Class to ScrollFlowLabel.

LICENSE

ScrollFlowLabel is released under the MIT license. See LICENSE for details.

GitHub

link
Stars: 2
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

v1.0.2
2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API