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
Post a Comment