Skip to content

Commit 9eb9116

Browse files
committed
chore: set sheet min content size
1 parent 90775e5 commit 9eb9116

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

macos/native_image_picker_macos/Sources/native_image_picker_macos/ImagePickerImpl.swift

+3
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ class ImagePickerImpl: NSObject, ImagePickerApi {
128128
picker.view.frame = NSRect(x: 0, y: 0, width: pickerWidth, height: pickerHeight)
129129

130130
window.contentViewController?.presentAsSheet(picker)
131+
132+
// A similar minimum sheet size to PhotosPicker in a macOS SwiftUI app.
133+
picker.view.window?.contentMinSize = NSSize(width: 320, height: 200)
131134
}
132135

133136
func openPhotosApp() -> Bool {

0 commit comments

Comments
 (0)