PlantUMLBrowserPresenter

public struct PlantUMLBrowserPresenter : PlantUMLPresenting

compress diagram into an URL and launch in browser (PlantText server).

  • format in which to present the script in the browser (default: editable script and corresponding diagram)

    Declaration

    Swift

    public private(set) var format: BrowserPresentationFormat { get }
  • default initializer

    Declaration

    Swift

    public init(format: BrowserPresentationFormat = .default)

    Parameters

    format

    in which to present the script in the browser

  • present script / diagram to user

    Declaration

    Swift

    public func present(script: PlantUMLScript, completionHandler: @escaping () -> Void)

    Parameters

    script

    in PlantUML notation

    completionHandler

    will be called when presentation was triggered