Create a Loading Animation in Swift
Walk on, with hope in your heart
Difficulty: Beginner | Easy | Normal | Challenging
This article has been developed using Xcode 11.4.1, and Swift 5.2.2
Want to display a loading screen that can appear when you’re doing some heavyweight operations? Perhaps you want this with when you are producing your App with a Storyboard, perhaps you want to do this programatically. Either way, this article has you covered.
Oh, and there are versions using CABasicAnimation
and UIView.animate
all nestled rather nicely in the attached Repo.
Prerequisites:
- You will be expected to be aware how to make a Single View Application() in Swift.
- This article uses storyboard constraints and loadview
Terminology:
Storyboard: A visual representation of the User Interface of an Application
The goal
This article is about producing a rather wonderful loading screen, with an infinitely scrolling background and a tree moving in parallax.
How is it possible to do this, when using the Storyboard
?