popover doesn't display on iphone
<p>I followed this <a href="https://stackoverflow.com/questions/28521583/uipopoverpresentationcontroller-on-iphone-doesnt-produce-popover">UIPopoverPresentationController on iPhone doesn&#39;t produce popover</a> but doesn't produce popover on iphone.
Here is the code of viewcontroller </p>

<pre><code>class ViewController:UIViewController,UIPopoverPresentationControllerDelegate{

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {

        if segue.identifier == "second"{

            let secondVC = segue.destination
            let controller : UIPopoverPresentationController = secondVC.popoverPresentationController!
            controller.delegate = self
        }
    }

    /* Popover delegate method */
    func adaptivePresentationStyleForPresentationController(controller: UIPresentationController) -&gt; UIModalPresentationStyle {
        return UIModalPresentationStyle.none
    }
}
</code></pre>

<p>I am not able to show new viewcontroller using present as popover in iphone. (ios 10/xcode8)</p>

<p><a href="https://i.stack.imgur.com/vWCwg.jpg" rel="nofollow noreferrer">After clicking on button secondViewController should popover on that button.</a></p>