Text Scroll using SwiftUI
Like Star Wars? Done!
Imagine that you want to create a scrolling view Star-Wars style. Well, Imagine no longer!
Difficulty: **Beginner** | Easy | Normal | Challenging<br/>
This article has been developed using Xcode 11.5, and Swift 5.2.4
- Be able to produce a “Hello, World!” Swift application
- Be able to produce a “Hello, World” SwiftUI application
This example is a nice one about how to scroll text up the screen in
SwiftUI using instance methods on the
That one thing
To find out the height of the device I used
GeometryReader which is wrapped around the
Let us see the code, let us see the code. Ok: here it is.
Look, this text scroll does not work perfectly. However, this is an interesting tutorial exploring how to lay out
Text and change the properties of the text in Swift that can be expanded into your
The full code is hosted on GitHub
If you’ve any questions, comments or suggestions please hit me up on Twitter