title: How to use MarqueeLabel in Swift?
body: <p>I want to know if there's a way to enable horizontal scrolling of text i.e., marquee type text. I have used this library: <a href="https://github.com/cbpowell/MarqueeLabel" rel="nofollow noreferrer">https://github.com/cbpowell/MarqueeLabel</a> and added the &quot;MarqueeLabel.Swift&quot; file to my application. But so far, it doesn't show the marquee effect that I wanted.</p>
  <p>This is how I implemented it:</p>
  <pre><code>class ViewController: UIViewController 
  {
  @IBOutlet weak var marqueeLabel: MarqueeLabel! 
  override func viewDidLoad() {
      super.viewDidLoad()
          self.marqueeLabel.tag = 101
          self.marqueeLabel.type = .Continuous
          self.marqueeLabel.speed = .Duration(5)
          self.marqueeLabel.animationCurve = .EaseInOut
          self.marqueeLabel.fadeLength = 10.0
          self.marqueeLabel.leadingBuffer = 30.0
          self.marqueeLabel.trailingBuffer = 20.0
          self.marqueeLabel.restartLabel()
   }
  }
  </code></pre>
  <p>I have set the custom class in the interface builder according to the solution in <a href="https://stackoverflow.com/questions/33692475/marqueelabel-swift-not-working/33692819#33692819">MarqueeLabel Swift not working</a>. It still doesn't work.</p>
  <p>All I get is just a label displaying without the marquee effect (or horizontal text scroll).</p>
  <p>P.S: I am new to iOS development too. Also, I tried using UIScrollView and UITextView before implementing this library. And I cannot use UIWebView as I'm trying to implement this in TVOS.</p>
  <p>My questions are:</p>
  <ol>
  <li><p>Where did I go wrong with the code?</p>
  </li>
  <li><p>Is there an alternative way to display marquee effect using Swift?</p>
  </li>
  </ol>
  <p>Thanks in advance.</p>