fix: splash screen now loads via JarvisIcon imageset (UIImage named: AppIcon doesn't resolve at runtime)
Added JarvisIcon.imageset containing the radar PNG so Image("JarvisIcon")
loads reliably. Also switched shadow tint to orange to echo the icon glow.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
21
Jarvis/Assets.xcassets/JarvisIcon.imageset/Contents.json
vendored
Normal file
21
Jarvis/Assets.xcassets/JarvisIcon.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "JarvisIcon.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Jarvis/Assets.xcassets/JarvisIcon.imageset/JarvisIcon.png
vendored
Normal file
BIN
Jarvis/Assets.xcassets/JarvisIcon.imageset/JarvisIcon.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 442 KiB |
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import SwiftData
|
import SwiftData
|
||||||
import UIKit
|
import UIKit // needed for AppDelegate
|
||||||
import BackgroundTasks
|
import BackgroundTasks
|
||||||
|
|
||||||
// MARK: - Splash
|
// MARK: - Splash
|
||||||
@@ -19,18 +19,11 @@ struct SplashView: View {
|
|||||||
ZStack {
|
ZStack {
|
||||||
Color(hex: "0A0A0A").ignoresSafeArea()
|
Color(hex: "0A0A0A").ignoresSafeArea()
|
||||||
VStack(spacing: 22) {
|
VStack(spacing: 22) {
|
||||||
// App icon displayed as a circle
|
Image("JarvisIcon")
|
||||||
Group {
|
|
||||||
if let img = UIImage(named: "AppIcon") {
|
|
||||||
Image(uiImage: img)
|
|
||||||
.resizable()
|
.resizable()
|
||||||
} else {
|
|
||||||
Circle().fill(Palette.surface)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.frame(width: 108, height: 108)
|
.frame(width: 108, height: 108)
|
||||||
.clipShape(Circle())
|
.clipShape(Circle())
|
||||||
.shadow(color: Color.black.opacity(0.4), radius: 20, y: 6)
|
.shadow(color: Palette.orange.opacity(0.35), radius: 22, y: 4)
|
||||||
.scaleEffect(iconScale)
|
.scaleEffect(iconScale)
|
||||||
.opacity(iconOpacity)
|
.opacity(iconOpacity)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user