Swiftpack.co - dequin-cl/Screenshots as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by dequin-cl.
dequin-cl/Screenshots 1.0.0
A library to help you take screenshots from TableView's and Scrollview's contents
⭐️ 9
🕓 3 years ago
.package(url: "https://github.com/dequin-cl/Screenshots.git", from: "1.0.0")

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

GitHub

link
Stars: 9
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

First Release
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