title: How to show pull down button menu in IOS 14 swift
body: <p>I created a pull down button like below</p>
  <pre><code>@IBOutlet weak var pullDownButton: UIButton!
  </code></pre>
  <p>Then I called a method from viewDidLoad() to configure pull down menu <a href="https://stackoverflow.com/questions/8400801/any-pull-down-or-drop-down-menu-for-ios">reference</a></p>
  <pre><code>func setupMenu() {
      let add = UIAction(title: &quot;Add&quot;, image: UIImage(systemName: &quot;plus&quot;)) { _ in
          self.showToast(message: &quot;Add&quot;, seconds: 1.0)
      }
      
      let edit = UIAction(title: &quot;Edit&quot;, image: UIImage(systemName: &quot;pencil&quot;)) { _ in
          self.showToast(message: &quot;Edit&quot;, seconds: 1.0)
      }
      
      let delete = UIAction(title: &quot;Delete&quot;, image: UIImage(systemName: &quot;minus&quot;)) { _ in
          self.showToast(message: &quot;Delete&quot;, seconds: 1.0)
      }
      
      let menu = UIMenu(title: &quot;Menu&quot;, children: [add, edit, delete])
      pullDownButton.menu = menu
      pullDownButton.showsMenuAsPrimaryAction = true
  }
  </code></pre>
  <p>But I am unable to show the pull down menu upon long press or simple press.</p>
  <p>Is there any way to show the pull down menu</p>