If your animation has content on the first frame, then you need to spend a bit of time in Xcode to make the launch sequence look smooth.
In this tutorial, we’ll export an animation with content on the first frame – it will also have a blue background.
Grab this animation to begin:
First thing to do is generate a launch animation from Flow using the file you just downloaded.
Export the animation using the
iOS - Launch Animationoption.
Here’s what your initial project will look when you run it:
Let’s start by changing the background color for the animation view.
In Xcode:
Main.storyboardview from the Artboard View Controller SceneAttributes Inspector
Great, now your launch animation will look like this:
Next, let’s prepare our launch screen to match our animation.
In Xcode:
LaunchScreen.storyboardview from the View Controller SceneAttributes Inspector
Our next task is to create the asset that will match up with the first frame of our animation. This is quite easy to do.
In Flow:
Hit ⇧⌘F to export the current frame
@2x and an @3x respectively, to the file name.The file names we used were:
blueLaunchScreenFirstFrame.pngblueLaunchScreenFirstFrame@2x.pngblueLaunchScreenFirstFrame@3x.pngIn Xcode:
This creates an asset that has 3 resolutions, it will look good on all retina devices.
Next, we’re going to add an image view to the launch screen.
LaunchScreen.storyboardLibrary button at the top-right of the windowIn the library window, search for the term: image
Set the name of the image to the name of your asset
Change the size of the view to 320 x 68
Add horizontal and vertical constraints
Add width and height constraints
RUNThere will now be a smooth transition fom the launch screen to the first frame of your animation.
You might not actually see the proper launch sequence in the iOS Simulator. We suspect it’s because of the time it takes to start up the simulator.
It’s best to check this launch sequnce directly on an iPhone. And, even better by compiling it from Xcode, quitting the app, and restarting via the app icon on the device.
result(s) found for “”.