Swiftpack.co - Package - dequin-cl/Screenshots

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

  • twitter: @dequin_cl
  • email: dequin@hey.com

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

First Release - 2020-10-09 13:49:26

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.