How to use MarqueeLabel in Swift?

后端 未结 7 1551
无人及你
无人及你 2021-01-05 19:17

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: https://github.com/cbpowell/MarqueeLabel-Swift and

7条回答
  •  一整个雨季
    2021-01-05 19:45

    Since the original question was related to tvOS, I have just found out by mistake (after weeks of searching!) that tvOS 12 beta has implemented this:

    One gets the marquee effect only when the ancestor is focused (like when we add a title to a movie poster and scroll to it), and sure, one may directly use TVPosterView from TVUIKit (like in this example) if that is the goal, but it works on single labels nonetheless.

提交回复
热议问题