Skip to content

Commit

Permalink
Increase preferred content size of ContactsView
Browse files Browse the repository at this point in the history
This makes the ContactsView popover look slightly more relaxed, which is
particularly noticeable on MacOS.

Thanks lissine for noticing this.

Co-authored-by: lissine <[email protected]>
  • Loading branch information
2 people authored and tmolitor-stud-tu committed Sep 1, 2024
1 parent 009becf commit cc03bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Monal/Classes/SwiftuiHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit cc03bec

Please sign in to comment.