sahilberi / swiftyscrollinglabel Goto Github PK
View Code? Open in Web Editor NEWSwiftScrollingLabel is a subclass of UIView and it adds a label on it with scrolling marquee effect.
License: MIT License
SwiftScrollingLabel is a subclass of UIView and it adds a label on it with scrolling marquee effect.
License: MIT License
Not working at all with attributed string.
Hi,
Can you tell me how can I setup programmatically?
I try to set iy up but after I got an error.....like =====>
ViewController.swift:53:9: Use of unresolved identifier 'toolbar_lbl'
import UIKit
class ViewController: UIViewController
{
@IBOutlet var main_button: UIButton!
@IBOutlet var tool_bar: UIToolbar!
class Metrites_class
{
static var metritis: Double = 0.0
static var lektiko: String = ""
}
override func viewDidLoad()
{
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
main_button.backgroundColor = UIColor.darkGray
main_button.layer.backgroundColor = UIColor.darkGray.cgColor
main_button.layer.borderWidth = 2.0
main_button.layer.borderColor = UIColor.red.cgColor
main_button.layer.cornerRadius = 10.0
let toolbar_lbl: SwiftyScrollingLabel = SwiftyScrollingLabel(frame: CGRect(x: 10, y: 2, width: self.view.frame.size.width-20, height: 40))
toolbar_lbl.backgroundColor = UIColor.clear
toolbar_lbl.labelBgColor = UIColor.clear
toolbar_lbl.right = true
toolbar_lbl.labelText = "Good Morning SWIFT!!!"
toolbar_lbl.layer.backgroundColor = UIColor.clear.cgColor
toolbar_lbl.layer.borderColor = UIColor.white.cgColor
toolbar_lbl.layer.borderWidth = 1.0
toolbar_lbl.layer.cornerRadius = 5.0
tool_bar.addSubview(toolbar_lbl)
}
override func viewDidAppear(_ animated: Bool)
{
super.viewDidAppear(animated)
toolbar_lbl.startAnimate()
}
Thanks in advance
George Gerardis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.