Fix MediaUI close button on Catalyst

This commit is contained in:
Thomas Ricouard 2024-09-19 08:59:36 +02:00
parent 23960d6d0f
commit 009150bc3e

View file

@ -75,7 +75,9 @@ private struct MediaToolBar: ToolbarContent {
let data: DisplayData
var body: some ToolbarContent {
#if !targetEnvironment(macCatalyst)
DismissToolbarItem()
#endif
QuickLookToolbarItem(itemUrl: data.url)
AltTextToolbarItem(alt: data.description)
SavePhotoToolbarItem(url: data.url, type: data.type)