title: sheetPresentationController legacy for iOS 12 in Swift (Question)
body: <p>I'm have to extend the support for a Cocoapod made for target iOS 15, and works showing a UINavigationController as bottom modal, presented for a UIViewController</p>
  <p><a href="https://i.stack.imgur.com/UX6gA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UX6gA.png" alt="enter image description here" /></a></p>
  <p>The problem is self.bottomController.sheetPresentationController is only available for iOS 15, and this must have to works until target 12.0</p>
  <p>If I comment the line:</p>
  <pre><code>if let sheet = self.bottomController.sheetPresentationController {
      sheet.detents = [.large()]
  }
  </code></pre>
  <p>and compile success for iOS 12 target, but the content of the modal is showed as fullscreen.</p>
  <p>How can imitate or do something to show the content (red text) as modal, as the picture?</p>
  <p>I tried using other pods into my pod but without success results. Thanks!</p>