From 1aacf06f0bff20d6b6c6e098d58cd4188edd3222 Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Sat, 30 Dec 2023 00:29:17 +0100 Subject: [PATCH] feat: set default content if document is new work on #25 --- PlantUML/PlantUMLDocumentProxy.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlantUML/PlantUMLDocumentProxy.swift b/PlantUML/PlantUMLDocumentProxy.swift index 8136c4d..1e73d84 100644 --- a/PlantUML/PlantUMLDocumentProxy.swift +++ b/PlantUML/PlantUMLDocumentProxy.swift @@ -42,7 +42,7 @@ class PlantUMLDocumentProxy : ObservableObject { init( document: Binding ) { self._object = document - self.text = document.wrappedValue.text + self.text = document.wrappedValue.isNew ? "title Untitled" : document.wrappedValue.text } func buildURL() -> URL {