This commit is contained in:
Max Goedjen 2023-07-23 14:34:13 -07:00
parent b9643e910e
commit 61777e9dc8
No known key found for this signature in database
1 changed files with 3 additions and 6 deletions

View File

@ -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)
}
}