title: How to make pdfView zoom=100% to fit screen size
body: <p>So I have this pdfView and I wanna make it so its first display is a zoom of 100% of the page, but the problem is that what I have now is zooming in to much and the UI is not pretty to be like that.</p>
  <p>My code is this:</p>
  <pre><code>    let pdfView = PDFView()
  
      pdfView.translatesAutoresizingMaskIntoConstraints = false
      pdfView.autoScales = true
      pdfView.maxScaleFactor = 4.0
      pdfView.minScaleFactor = pdfView.scaleFactorForSizeToFit
      view.addSubview(pdfView)
  
      pdfView.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor).isActive = true
      pdfView.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor).isActive = true
      pdfView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor).isActive = true
      pdfView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor).isActive = true
      
      
      guard let path = Bundle.main.url(forResource: materia , withExtension: &quot;pdf&quot;) else { return }
  
      if let document = PDFDocument(url: path) {
          pdfView.document = document
      }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/trNdz.png" rel="noreferrer">How I want it to be</a></p>
  <p><a href="https://i.stack.imgur.com/rSTqW.png" rel="noreferrer">How it is</a></p>