Skip to content

Commit c44f6e0

Browse files
committed
Making popovert presentation background color dynamic.
This allows to have a dark popovert presentation background color on Dark Mode.
1 parent 4b6cc3d commit c44f6e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WordPressEditor/WordPressEditor/Classes/ViewControllers/OptionsTableViewController/OptionsTablePresenter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class OptionsTablePresenter: NSObject {
5858
optionsViewController.popoverPresentationController?.permittedArrowDirections = [.down]
5959
optionsViewController.popoverPresentationController?.sourceView = barItem
6060
optionsViewController.popoverPresentationController?.sourceRect = barItem.bounds
61-
optionsViewController.popoverPresentationController?.backgroundColor = .white
61+
optionsViewController.popoverPresentationController?.backgroundColor = optionsViewController.cellBackgroundColor
6262
optionsViewController.popoverPresentationController?.delegate = self
6363

6464
presentingViewController.present(optionsViewController, animated: true, completion: completion)

0 commit comments

Comments
 (0)