/Screenshots

A library to help you take screenshots from TableView's and Scrollview's contents

Primary LanguageSwiftMIT LicenseMIT

Screenshots

Screenshots

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

Install

Swift Package Manager

Screenshots is available through Swift Package Manager.

Xcode

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")

Usage

Inside the ViewController, given a local variable tableView, you just need to call the library provided variable screenshot

import Screenshots

let image = tableView.screenshot

Licensing information

Screenshots is under the MIT License.

Supported platforms and versions of Swift

Swift 5.2

Platforms Tested:

  • iOS 11 and up.
  • iPadOS.

Contact information