Implement marquee label in cell iOS swift

 Problem:

I want to add one label that had marquee text in uitableviewcell iOS swift

Solution:

Before use marque add MarqueeLabel in podfile and integrate it.

import UIKit

import MarqueeLabel

import RxSwift

import RxCocoa


class myCell: UICollectionViewCell {


    @IBOutlet weak var title: MarqueeLabel!

    

    var disposebag = DisposeBag()


    override func awakeFromNib() {

        super.awakeFromNib()

    }

    

    override func prepareForReuse() {

        self.title.speed = MarqueeLabel.SpeedLimit.duration(100)

        self.disposebag = DisposeBag()

    }

}

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift