CocoaPods trunk is moving to be read-only. Read more on the blog, there are 10 months to go.

ScrollFlowLabel 1.0.4

ScrollFlowLabel 1.0.4

Maintained by Yuya Oka.



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.