I know, let a piece of text in a certain amount of time animation loop, change the offset, let the text scroll, but this way the text scroll, but the text is not fully displayed
It would be nice if you could execute other statements inside the closure, but the scroll text implementation is attached below, but the text display is incomplete
Text()
.offset(x: offset, y: 0)
.animation(Animation.linear(duration: Double(textWidth) / 30)
Topic:
Spatial Computing
SubTopic:
General
Tags: