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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user