UIScrollView

public extension UIScrollView

Provide a screenshot function for a scroll view

Author

Adamas

Date

08/05/2019

Version

1.5.0
  • The screenshot created for the view.

    Important

    Since iOS 13, cells out of the view are not persistent in the memory. So UITableView and UICollectionView cannot generate screenshots.

    Declaration

    Swift

    func contentScreenshot(withScale scale: Double = 1) -> UIImage?

    Parameters

    scale

    The scale of the screenshot

    Return Value

    The screenshot