From 61777e9dc8e84de3f0ac666f0086bbbf12a69e78 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Sun, 23 Jul 2023 14:34:13 -0700 Subject: [PATCH] Comment --- Sources/Secretive/Views/ContentView.swift | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Sources/Secretive/Views/ContentView.swift b/Sources/Secretive/Views/ContentView.swift index eafc750..defbf40 100644 --- a/Sources/Secretive/Views/ContentView.swift +++ b/Sources/Secretive/Views/ContentView.swift @@ -88,7 +88,7 @@ extension ContentView { .foregroundColor(.white) }) .buttonStyle(ToolbarButtonStyle(color: color)) - .popover(item: $selectedUpdate, arrowEdge: .bottom) { update in + .popover(item: $selectedUpdate, attachmentAnchor: attachmentAnchor, arrowEdge: .bottom) { update in UpdateDetailView(update: update) } } @@ -187,11 +187,8 @@ extension ContentView { } var attachmentAnchor: PopoverAttachmentAnchor { - if #available(macOS 14, *) { - return .rect(.bounds) - } else { - return .point(.bottom) - } + // Ideally .point(.bottom), but broken on Sonoma (FB12726503) + .rect(.bounds) } }