Image("AppIcon") resolved to nothing at runtime (confirmed live) — App
Icon-type asset catalog entries aren't reliably retrievable through
Image(_:)/UIImage(named:) the way a normal Image Set is. Added AppLogo,
a plain Image Set duplicating the same outpost-ios-1024.png artwork, and
pointed AuthHeaderView at that instead.
28 lines
1.0 KiB
Swift
28 lines
1.0 KiB
Swift
import SwiftUI
|
|
|
|
struct AuthHeaderView: View {
|
|
var body: some View {
|
|
VStack(spacing: 12) {
|
|
// A plain Image Set, not the AppIcon *app icon* asset — App Icon
|
|
// sets aren't reliably resolvable through Image(_:)/UIImage
|
|
// (named:) at runtime (confirmed live: showed nothing). This is
|
|
// the same source artwork (outpost-ios-1024.png) duplicated
|
|
// into a normal image set so SwiftUI can actually load it.
|
|
Image("AppLogo")
|
|
.resizable()
|
|
.scaledToFit()
|
|
.frame(width: 72, height: 72)
|
|
.clipShape(RoundedRectangle(cornerRadius: 72 * 0.2237, style: .continuous))
|
|
.shadow(color: .black.opacity(0.25), radius: 12, y: 6)
|
|
|
|
VStack(spacing: 4) {
|
|
Text("Welcome to Outpost")
|
|
.font(.title2.bold())
|
|
Text("Sign in to your Outline workspace")
|
|
.font(.subheadline)
|
|
.foregroundStyle(.secondary)
|
|
}
|
|
}
|
|
}
|
|
}
|