Swiftpack.co - nnsnodnb/ScrollFlowLabel as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by nnsnodnb.
nnsnodnb/ScrollFlowLabel 1.0.4
Display long text on UILabel while scrolling automatically.
⭐️ 2
🕓 1 year ago
iOS
.package(url: "https://github.com/nnsnodnb/ScrollFlowLabel.git", from: "1.0.4")

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: 1 week ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v1.0.4
1 year ago

What's Changed

Full Changelog: https://github.com/nnsnodnb/ScrollFlowLabel/compare/1.0.3...1.0.4

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