Skip to content

Commit

Permalink
Fix MediaUI close button on Catalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Sep 19, 2024
1 parent 23960d6 commit 009150b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Packages/MediaUI/Sources/MediaUI/MediaUIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 009150b

Please sign in to comment.