PlaygroundBook
public struct PlaygroundBook
The PlaygroundBook
-
The name of the PlaygroundBook
Declaration
Swift
public let name: String -
The Content
Declaration
Swift
public let content: Content -
The FileManager
Declaration
Swift
public let fileManager: FileManager
-
Designated Initializer
Declaration
Swift
public init( name: String? = nil, content: Content = .default, fileManager: FileManager = .default )Parameters
nameThe optional name of the PlaygroundBook. When passing nil the default name is used. Default value
nilcontentThe Content. Default value
.defaultfileManagerThe FileManager. Default value
.default
-
The PlaygroundBook Content
See moreDeclaration
Swift
enum Content : Equatable, Hashable
-
Generate PlaygroundBook in iCloud Directory
Declaration
Swift
func generate() throws
-
The default Playground Page File Name
Declaration
Swift
var defaultPlaygroundPageFileName: String { get }
-
The PlaygroundBook Template File Path
Declaration
Swift
var templateFilePath: Path { get } -
The iCloud File Path
Declaration
Swift
var iCloudPath: Path { get } -
The destination File Path
Declaration
Swift
var destinationFilePath: Path { get } -
The Playground Page File Path
Declaration
Swift
var playgroundPageFilePath: Path { get } -
The Manifest File Path
Declaration
Swift
var manifestFilePath: Path { get } -
The main Swift File Path
Declaration
Swift
var mainSwiftFilePath: Path { get }
-
Open PlaygroundBook
Declaration
Swift
func open(executable: (String) throws -> Void) throwsParameters
executableThe executable to execute a bash command
View on GitHub
PlaygroundBook Structure Reference