mirror of
				https://github.com/ghostty-org/ghostty.git
				synced 2025-11-04 01:34:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			572 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			572 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
import SwiftUI
 | 
						|
 | 
						|
struct ErrorView: View {
 | 
						|
    var body: some View {
 | 
						|
        HStack {
 | 
						|
            Image("AppIconImage")
 | 
						|
                .resizable()
 | 
						|
                .scaledToFit()
 | 
						|
                .frame(width: 128, height: 128)
 | 
						|
 | 
						|
            VStack(alignment: .leading) {
 | 
						|
                Text("Oh, no. 😭").font(.title)
 | 
						|
                Text("Something went fatally wrong.\nCheck the logs and restart Ghostty.")
 | 
						|
            }
 | 
						|
        }
 | 
						|
        .padding()
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
struct ErrorView_Previews: PreviewProvider {
 | 
						|
    static var previews: some View {
 | 
						|
        ErrorView()
 | 
						|
    }
 | 
						|
}
 |