Skip to content

Commit

Permalink
feat: allow initialize new document with a custom text
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Dec 31, 2023
1 parent 03983f5 commit d10ddff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PlantUML/PlantUMLDocument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import UniformTypeIdentifiers

extension UTType {
static var umldiagram: UTType {
// UTType(importedAs: "com.example.plain-text")
UTType(importedAs: "org.bsc.plantuml-text")
}
}
Expand All @@ -24,8 +23,8 @@ struct PlantUMLDocument: FileDocument {
text.isEmpty
}

init() {
self.text = ""
init( text:String = "") {
self.text = text
}


Expand Down

0 comments on commit d10ddff

Please sign in to comment.