https://github.com/jfversluis/mauistoryboardsample
Sample code to demonstrate how to use a custom iOS Storyboard launch screen with .NET MAUI
https://github.com/jfversluis/mauistoryboardsample
dotnet dotnet-maui ios launchscreen storyboard
Last synced: 6 months ago
JSON representation
Sample code to demonstrate how to use a custom iOS Storyboard launch screen with .NET MAUI
- Host: GitHub
- URL: https://github.com/jfversluis/mauistoryboardsample
- Owner: jfversluis
- Created: 2023-10-19T13:47:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-08T08:46:43.000Z (10 months ago)
- Last Synced: 2024-11-19T16:02:04.616Z (7 months ago)
- Topics: dotnet, dotnet-maui, ios, launchscreen, storyboard
- Language: C#
- Homepage:
- Size: 225 KB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
Watch how it's made on YouTube: [](https://www.youtube.com/watch?v=xkHNbrpi3ZQ&list=PLfbOp004UaYWu-meDkRN6_Y1verl96npI)
1. Create custom launch screen in Xcode (File > New > File and choose Launch Screen), see [here](https://github.com/jfversluis/MauiStoryboardSample/blob/main/MauiStoryboardSample/Resources/LaunchScreen.storyboard).
2. Add it to .NET MAUI project Resources folder, see [here](https://github.com/jfversluis/MauiStoryboardSample/blob/main/MauiStoryboardSample/Resources).
3. Make sure that it has the build action `InterfaceDefinition`, see [here](https://github.com/jfversluis/MauiStoryboardSample/blob/main/MauiStoryboardSample/MauiStoryboardSample.csproj#L58).
4. Include custom launchscreen only for iOS (in csproj), see [here](https://github.com/jfversluis/MauiStoryboardSample/blob/main/MauiStoryboardSample/MauiStoryboardSample.csproj#L57).
5. Exclude `MauiSplashScreen` for iOS (in csproj), see [here](https://github.com/jfversluis/MauiStoryboardSample/blob/main/MauiStoryboardSample/MauiStoryboardSample.csproj#L41).
6. Specify launch screen in `info.plist`, see [here](https://github.com/jfversluis/MauiStoryboardSample/blob/main/MauiStoryboardSample/Platforms/iOS/Info.plist#L31-L32).> [!NOTE]
> As of iOS 16.4 your app has to be code signed in order for the splash screen to show up. If you do not sign your app, the splash screen will always show black.