Pisth
open class Pisth
The class for interacting with the API.
-
Unique and shared instance.
Declaration
Swift
static open let shared = Pisth() -
Shared pasteboard.
Declaration
Swift
open let pasteboard = UIPasteboard(name: .init("pisth-import"), create: true) -
Imported file data.
Declaration
Swift
open var dataReceived: Data? -
Pisth URL scheme used to import files.
Declaration
Swift
open var pisthURLScheme: URL -
This app URL scheme.
Declaration
Swift
open var urlScheme: URL? -
Returns
trueif current application can open Pisth URL scheme.Declaration
Swift
open var canOpen: Bool -
Open Pisth and import file.
This function takes a screenshot of key window and use it as blurred background for Pisth.
Declaration
Swift
open func importFile() -
Get filename from opened URL.
Declaration
Swift
open func filename(fromURL url: URL) -> String?
View on GitHub
Install in Dash
Pisth Class Reference