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 SwiftData
|
||||
import UIKit
|
||||
import UIKit // needed for AppDelegate
|
||||
import BackgroundTasks
|
||||
|
||||
// MARK: - Splash
|
||||
@@ -19,18 +19,11 @@ 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)
|
||||
Image("JarvisIcon")
|
||||
.resizable()
|
||||
} else {
|
||||
Circle().fill(Palette.surface)
|
||||
}
|
||||
}
|
||||
.frame(width: 108, height: 108)
|
||||
.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)
|
||||
.opacity(iconOpacity)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user