This library is build to take full screenshots from your App. It has UIView/UITableView/UIScrollView Extension to get really easy, smart and instant screenshot images.
Its based on DHSmartScreenshot, work by davidman
Screenshots is available through Swift Package Manager.
Select File > Swift Packages > Add Package Dependency...
,
Or add this package manually to the dependencies in your Package.swift
file:
.package(url: "https://github.com/dequin-cl/Screenshots.git", from: "1.0.0")
Inside the ViewController, given a local variable tableView, you just need to call the library provided variable screenshot
import Screenshots
⋮
let image = tableView.screenshot
Screenshots is under the MIT License.
Swift 5.2
Platforms Tested:
link |
Stars: 9 |
Last commit: 3 years ago |
This is the first release of the library.
It allows the programmer to capture a screenshot from the entire UItableView or UIScrollView contents and not only what is displayed on the device.
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics