title: How to share "screenshot" a entire scrollview in xcode/swift?
body: <p>Can someone show me where to add frame size or bounds to capture the entire scrollview it's width is set to any and its height is 2200p. 
  import UIKit</p>
  
  <p>class ViewController: UIViewController {</p>
  
  <pre><code>@IBAction func shareButton(_ sender: Any) {
  
          UIGraphicsBeginImageContextWithOptions(view!.frame.size, false, 0.0)
          view!.drawHierarchy(in: view!.frame, afterScreenUpdates: true)
          let image = UIGraphicsGetImageFromCurrentImageContext()
          UIGraphicsEndImageContext();
  
          UIImageWriteToSavedPhotosAlbum(image!, nil, nil, nil)
  
          let activityVC = UIActivityViewController(activityItems: [image!], applicationActivities: nil)
  
          let vc = self.view?.window?.rootViewController
  
          activityVC.popoverPresentationController?.sourceView = vc?.view
          activityVC.popoverPresentationController?.sourceView = self.view
          self.present(activityVC, animated: true, completion: nil)
  </code></pre>
  
  <p>}</p>
  
  <p>}</p>
  
  <p>Thats my code, it does take a screenshot but only whats on screen and the UIActivityController comes. Not to concern about renaming it each after each press or what other apps I can share with.</p>
  
  <p>I've look at other post on here and get crashes or countless errors and they are outdated to begin with.</p>
  
  <p>Thank you for any help.</p>