PlaygroundBook

public struct PlaygroundBook

The PlaygroundBook

Properties

  • 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

Initializer

  • Designated Initializer

    Declaration

    Swift

    public init(
        name: String? = nil,
        content: Content = .default,
        fileManager: FileManager = .default
    )

    Parameters

    name

    The optional name of the PlaygroundBook. When passing nil the default name is used. Default value nil

    content

    The Content. Default value .default

    fileManager

    The FileManager. Default value .default

Content

  • The PlaygroundBook Content

    See more

    Declaration

    Swift

    enum Content : Equatable, Hashable

Generate

  • Generate PlaygroundBook in iCloud Directory

    Declaration

    Swift

    func generate() throws

Default PlaygroundPage File Name

Paths

Open

  • Open PlaygroundBook

    Declaration

    Swift

    func open(executable: (String) throws -> Void) throws

    Parameters

    executable

    The executable to execute a bash command