fix: splash screen now loads via JarvisIcon imageset (UIImage named: AppIcon doesn't resolve at runtime)
Some checks failed
CI / Build · macos-14 · Debug (push) Has been cancelled
CI / Build · macos-15 · Debug (push) Has been cancelled
CI / Build · macos-14 · Release (push) Has been cancelled
CI / Build · macos-15 · Release (push) Has been cancelled

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:
Robin Kutesa
2026-06-21 02:41:29 +03:00
parent 694880eb4c
commit ff304d1fda
3 changed files with 29 additions and 15 deletions

View 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
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

View File

@@ -2,7 +2,7 @@
import SwiftUI
import SwiftData
import UIKit
import UIKit // needed for AppDelegate
import BackgroundTasks
// MARK: - Splash
@@ -19,20 +19,13 @@ struct SplashView: View {
ZStack {
Color(hex: "0A0A0A").ignoresSafeArea()
VStack(spacing: 22) {
// App icon displayed as a circle
Group {
if let img = UIImage(named: "AppIcon") {
Image(uiImage: img)
.resizable()
} else {
Circle().fill(Palette.surface)
}
}
.frame(width: 108, height: 108)
.clipShape(Circle())
.shadow(color: Color.black.opacity(0.4), radius: 20, y: 6)
.scaleEffect(iconScale)
.opacity(iconOpacity)
Image("JarvisIcon")
.resizable()
.frame(width: 108, height: 108)
.clipShape(Circle())
.shadow(color: Palette.orange.opacity(0.35), radius: 22, y: 4)
.scaleEffect(iconScale)
.opacity(iconOpacity)
JarvisWordmark(size: 28)
.opacity(markOpacity)