UIScrollView
public extension UIScrollView
Provide a screenshot function for a scroll view
Date
08/05/2019Version
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
scaleThe scale of the screenshot
Return Value
The screenshot
UIScrollView Extension Reference