From f84694b8095eaff0fe2e2dc3c64aca071f18d42b Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 28 May 2023 15:34:56 -0700 Subject: [PATCH] Fix compose toolbar background not extending to full width on landscape iPhones --- .../Sources/ComposeUI/Controllers/ToolbarController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/ComposeUI/Sources/ComposeUI/Controllers/ToolbarController.swift b/Packages/ComposeUI/Sources/ComposeUI/Controllers/ToolbarController.swift index d8cd3d9e..ee37c246 100644 --- a/Packages/ComposeUI/Sources/ComposeUI/Controllers/ToolbarController.swift +++ b/Packages/ComposeUI/Sources/ComposeUI/Controllers/ToolbarController.swift @@ -100,9 +100,10 @@ class ToolbarController: ViewController { .scrollDisabledIfAvailable(realWidth ?? 0 <= minWidth ?? 0) .frame(height: ToolbarController.height) .frame(maxWidth: .infinity) - .background(.regularMaterial, ignoresSafeAreaEdges: .bottom) + .background(.regularMaterial, ignoresSafeAreaEdges: [.bottom, .leading, .trailing]) .overlay(alignment: .top) { Divider() + .edgesIgnoringSafeArea([.leading, .trailing]) } .background(GeometryReader { proxy in Color.clear