β¨ (llm-ios) animated launchscreen swift module #9592
Draft
+313
β48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
β Checklist
npx changeset
was attached.π Description
This PR aims to create a custom swift module to handle the animated launchscreen on ios. This way we will be able to dismiss it from react-native part.
We need to trick a bit the native behaviour by removing the logo on the LaunchScreen and to display a view with the gif on it since native LaunchScreen only accepts static images.
The new animated splashscreen will run a gif directly. We will dismiss it once the main part of the app is rendered to avoid white / black screen. Also to avoid to have only half of the animation we ensure that the gif has been played at least once
=> I've reformatted a bit the appDelegate to follow xcode formatting
The main issue is with detox. We sometimes had duplicated WS connection. TO avoid this the custom splashscreen and loading view are hidden using launchArgs and
BOOL isDetox = [[[NSProcessInfo processInfo] arguments] containsObject:@"-IS_TEST"];
All of the UI decisions have been validated by design team ! See bellow a video on multiple ios devices
β Context
π§ Checklist for the PR Reviewers