-
Renders a Swift Package content into Swift Playground compatible to iPad.
Declaration
Swift
static func render( packageContent: String, name: String, output: URL, excludes: [PlaygroundExcludeItem] ) -> EnvIO<ProgressReport, nef.Error, URL>Parameters
packageContentSwift Package content.
nameName for the output Swift Playground.
outputFolder where to write the Swift Playground.
excludesList of items to exclude for building the Swift Playground.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand values with the Swift Playground output of typeURL, having access to an immutable environment of typeProgressReport. -
render(packageContent:name:output:)Extension methodRenders a Swift Package content into Swift Playground compatible to iPad.
Declaration
Swift
static func render( packageContent: String, name: String, output: URL ) -> EnvIO<ProgressReport, nef.Error, URL>Parameters
packageContentSwift Package content.
nameName for the output Swift Playground.
outputFolder where to write the Swift Playground.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand values with the Swift Playground output of typeURL, having access to an immutable environment of typeProgressReport. -
render(package:name:output:)Extension methodRenders a Swift Package content into Swift Playground compatible to iPad.
Declaration
Swift
static func render( package: URL, name: String, output: URL ) -> EnvIO<ProgressReport, nef.Error, URL>Parameters
packageSwift Package file.
nameName for the output Swift Playground.
outputFolder where to write the Swift Playground.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand values with the Swift Playground output of typeURL, having access to an immutable environment of typeProgressReport.
Install in Dash
SwiftPlaygroundAPI Protocol Reference