I'm trying to make a screenshot of full webpage rendered in WKWebView:
let snapshotConfiguration = WKSnapshotConfiguration()
snapshotConfiguration.snapshotWidth = 1440
webView.takeSnapshot(with: snapshotConfiguration) { (image, error) in
UIImageWriteToSavedPhotosAlbum(image!, nil, nil, nil)
}
But method takeSnapshot
creates only screenshot of viewport.
How can I make screenshot of full webpage?