From 8b01d795022d4569b5c28036eaff600e0e688057 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 18 Jan 2024 20:31:41 -0800 Subject: [PATCH] macos: iOS bg color extends to unsafe areas --- macos/Sources/App/iOS/iOSApp.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/macos/Sources/App/iOS/iOSApp.swift b/macos/Sources/App/iOS/iOSApp.swift index 50c115293..ba1993296 100644 --- a/macos/Sources/App/iOS/iOSApp.swift +++ b/macos/Sources/App/iOS/iOSApp.swift @@ -16,7 +16,12 @@ struct iOS_GhosttyTerminal: View { @EnvironmentObject private var ghostty_app: Ghostty.App var body: some View { - Ghostty.Terminal() + ZStack { + // Make sure that our background color extends to all parts of the screen + Color(ghostty_app.config.backgroundColor).ignoresSafeArea() + + Ghostty.Terminal() + } } }