pod 'ScrollFlowLabel'
github "nnsnodnb/ScrollFlowLabel" ~> 1.0.0
// 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"])
]
)
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.
Set UIView to any place and change Custom Class to ScrollFlowLabel.
ScrollFlowLabel is released under the MIT license. See LICENSE for details.
link |
Stars: 2 |
Last commit: 3 days ago |
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