mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-29 03:21:02 +00:00
Better popover source rect
This commit is contained in:
parent
51529a7ebf
commit
3ca541d37e
1 changed files with 2 additions and 1 deletions
|
@ -397,7 +397,8 @@ private extension NewStatusViewController {
|
||||||
emojiPickerController.modalPresentationStyle = .popover
|
emojiPickerController.modalPresentationStyle = .popover
|
||||||
emojiPickerController.popoverPresentationController?.delegate = self
|
emojiPickerController.popoverPresentationController?.delegate = self
|
||||||
emojiPickerController.popoverPresentationController?.sourceView = fromView
|
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
|
emojiPickerController.popoverPresentationController?.backgroundColor = .clear
|
||||||
|
|
||||||
present(emojiPickerController, animated: true)
|
present(emojiPickerController, animated: true)
|
||||||
|
|
Loading…
Reference in a new issue