fix(auth): use the real app icon on the login screen, not a placeholder

AuthHeaderView was still a generic gradient-circle + SF Symbol book icon
from before AppIcon.appiconset had real branded artwork — never swapped
out once the actual icon was added. Now renders Image("AppIcon") directly
so the login screen can't drift from whatever the Dock/Home Screen icon
actually is.
This commit is contained in:
2026-08-18 12:09:52 +01:00
parent 931338c9d3
commit 2b0924be04
+9 -15
View File
@@ -3,21 +3,15 @@ import SwiftUI
struct AuthHeaderView: View { struct AuthHeaderView: View {
var body: some View { var body: some View {
VStack(spacing: 12) { VStack(spacing: 12) {
ZStack { // Renders whichever platform variant AppIcon.appiconset has for
Circle() // the current destination same asset Xcode uses for the
.fill( // Dock/Home Screen icon, so this can't drift from it separately.
LinearGradient( Image("AppIcon")
colors: [Color.accentColor, Color.accentColor.opacity(0.6)], .resizable()
startPoint: .topLeading, .scaledToFit()
endPoint: .bottomTrailing .frame(width: 72, height: 72)
) .clipShape(RoundedRectangle(cornerRadius: 72 * 0.2237, style: .continuous))
) .shadow(color: .black.opacity(0.25), radius: 12, y: 6)
.frame(width: 64, height: 64)
Image(systemName: "text.book.closed.fill")
.font(.system(size: 26, weight: .semibold))
.foregroundStyle(.white)
}
.shadow(color: Color.accentColor.opacity(0.35), radius: 12, y: 6)
VStack(spacing: 4) { VStack(spacing: 4) {
Text("Welcome to Outpost") Text("Welcome to Outpost")