Skip to content

Commit

Permalink
feat: set default content if document is new
Browse files Browse the repository at this point in the history
work on #25
  • Loading branch information
bsorrentino committed Dec 29, 2023
1 parent 4183e86 commit 1aacf06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PlantUML/PlantUMLDocumentProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PlantUMLDocumentProxy : ObservableObject {

init( document: Binding<PlantUMLDocument> ) {
self._object = document
self.text = document.wrappedValue.text
self.text = document.wrappedValue.isNew ? "title Untitled" : document.wrappedValue.text
}

func buildURL() -> URL {
Expand Down

0 comments on commit 1aacf06

Please sign in to comment.