From cc03beccb60f6de0700f58c48176136ed2031592 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 1 Sep 2024 13:22:01 +0100 Subject: [PATCH] Increase preferred content size of ContactsView This makes the ContactsView popover look slightly more relaxed, which is particularly noticeable on MacOS. Thanks lissine for noticing this. Co-authored-by: lissine --- Monal/Classes/SwiftuiHelpers.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Monal/Classes/SwiftuiHelpers.swift b/Monal/Classes/SwiftuiHelpers.swift index 4d2586ec3..2baaadb29 100644 --- a/Monal/Classes/SwiftuiHelpers.swift +++ b/Monal/Classes/SwiftuiHelpers.swift @@ -772,7 +772,7 @@ class SwiftuiInterface : NSObject { host.rootView = AnyView(AddTopLevelNavigation(withDelegate: delegate, to: contactsView)) host.modalPresentationStyle = .popover host.popoverPresentationController?.sourceItem = button - host.preferredContentSize = host.sizeThatFits(in: CGSize(width: 0, height: 600)) + host.preferredContentSize = host.sizeThatFits(in: CGSize(width: 400, height: 600)) return host }