mirror of
https://github.com/metabolist/metatext
synced 2025-01-14 19:07:05 +01:00
Better popover source rect
This commit is contained in:
parent
51529a7ebf
commit
3ca541d37e
@ -397,7 +397,8 @@ private extension NewStatusViewController {
|
||||
emojiPickerController.modalPresentationStyle = .popover
|
||||
emojiPickerController.popoverPresentationController?.delegate = self
|
||||
emojiPickerController.popoverPresentationController?.sourceView = fromView
|
||||
emojiPickerController.popoverPresentationController?.sourceRect = fromView.bounds
|
||||
emojiPickerController.popoverPresentationController?.sourceRect =
|
||||
.init(origin: .init(x: fromView.bounds.midX, y: fromView.bounds.maxY), size: .zero)
|
||||
emojiPickerController.popoverPresentationController?.backgroundColor = .clear
|
||||
|
||||
present(emojiPickerController, animated: true)
|
||||
|
Loading…
Reference in New Issue
Block a user