Search code examples
ioslaunch-screen

Swift: Animation code on LaunchScreen


I want to rotate an app logo on my Launch Screen (LaunchScreen.storyboard).

This link helps me in getting the code to rotate an image. However, where can I put this code?

Since there is no class file associated with the Launch Screen, how can I acheive this?


Solution

  • You can't directly do that as the launch screen is static. Even if it's set up via a .xib or a storyboard file, it will appear as a snapshot of the initial state of that scene.

    You should create a view controller with the same look as your launch screen and animate that.