I want to scroll my text like teleprompter scroll. I've read about UIDynamicAnimation
but not clear with UITextView
for multiple lines.
Appreciate your suggestions or code snippets to achieve this.
I want to scroll my text like teleprompter scroll. I've read about UIDynamicAnimation
but not clear with UITextView
for multiple lines.
Appreciate your suggestions or code snippets to achieve this.
Using a recursive method we could animate each row scroll using
UIView.animate(withDuration:animations:completed)
till we reach the end of the textView.calling it:
animateRowWith(duration: 1.0, rowHeight: self.textView.font?.lineHeight ?? 0)
.Note that you will have a delay after each row has scrolled.