From 7e12f86718a3644ca3b410dcfdefd09373e0cf2f Mon Sep 17 00:00:00 2001 From: Build Pipeline Date: Thu, 3 Nov 2022 17:30:10 +0100 Subject: [PATCH] feat: add divider add divider between editor and preview --- PlantUML/PlantUMLEditorView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PlantUML/PlantUMLEditorView.swift b/PlantUML/PlantUMLEditorView.swift index 3331cd8..8e7d8c7 100644 --- a/PlantUML/PlantUMLEditorView.swift +++ b/PlantUML/PlantUMLEditorView.swift @@ -37,6 +37,7 @@ struct PlantUMLEditorView: View { if( isEditorVisible ) { PlantUMLLineEditorView( items: $diagram.items ) } + Divider() if isPreviewVisible { if isScaleToFit { PlantUMLDiagramView( url: diagram.buildURL() ) @@ -130,6 +131,7 @@ extension PlantUMLEditorView { struct ContentView_Previews: PreviewProvider { static var previews: some View { PlantUMLEditorView(document: .constant(PlantUMLDocument())) + .previewDevice(PreviewDevice(rawValue: "iPad mini (6th generation)")) .environment(\.editMode, Binding.constant(EditMode.inactive)) .previewInterfaceOrientation(.landscapeRight) .environmentObject( PlantUMLDiagramObject( text: @@ -138,5 +140,6 @@ struct ContentView_Previews: PreviewProvider { title test """)) + } }