From b75f29e09f07e90f7803fd5384d3e5143af62e33 Mon Sep 17 00:00:00 2001 From: Alexis Aubry Date: Wed, 18 Oct 2017 10:58:48 +0200 Subject: [PATCH] Fix example style selector popover presentation on iPad --- Example/Sources/ViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Example/Sources/ViewController.swift b/Example/Sources/ViewController.swift index 17df9cd..910fa4b 100644 --- a/Example/Sources/ViewController.swift +++ b/Example/Sources/ViewController.swift @@ -145,6 +145,7 @@ class ViewController: UIViewController { let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil) styleSelectorSheet.addAction(cancelAction) + styleSelectorSheet.popoverPresentationController?.barButtonItem = styleButtonItem present(styleSelectorSheet, animated: true) }