Alfi Alfi - 3 months ago 16
Swift Question

Here is how to Marquee text of label on swift

The right answer is checked. hope this to help others...

Answer

I Founded even Much Better Solution !

I Combined 2 Different method together

here with this code in swift you can do Marquee with ultimate repeat and very simple ! Just put Your Label Out side of Display View.

 UIView.animateWithDuration(8.0, delay:0, options: [.Repeat], animations: {   
        self.YOURLABELNAME.frame = CGRectMake(self.YOURLABELNAME.frame.origin.x - 500, self.YOURLABELNAME.frame.origin.y - 0, self.YOURLABELNAME.frame.size.width, self.YOURLABELNAME.frame.size.height)
        }, completion: nil)