Add launch screen

This commit is contained in:
Ethan Pippin 2021-10-23 21:43:42 -06:00
parent a06ceb7453
commit 5b4505185d
7 changed files with 70 additions and 5 deletions

View File

@ -19,8 +19,7 @@ struct JellyfinPlayerApp: App {
var body: some Scene {
WindowGroup {
// TODO: Replace with a SplashView
Color(appAppearance.style == .light ? UIColor.white : UIColor.black)
EmptyView()
.ignoresSafeArea()
.onAppear {
setupAppearance()

View File

@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000",
"red" : "1.000"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.000",
"green" : "0.000",
"red" : "0.000"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "swiftfin-logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "swiftfin-logo-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "swiftfin-logo-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -62,9 +62,14 @@ network.</string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchScreen</key>
<dict/>
<key>UILaunchStoryboardName</key>
<string>VideoPlayer</string>
<dict>
<key>UIImageRespectsSafeAreaInsets</key>
<true/>
<key>UIImageName</key>
<string>swiftfin-logo</string>
<key>UIColorName</key>
<string>LaunchScreenBackground</string>
</dict>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>