Git Product home page Git Product logo

swiftyscrollinglabel's People

Contributors

sahilberi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

swiftyscrollinglabel's Issues

Setup Programmatically?

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'

my code is following ======>

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.