Skip to content

Commit

Permalink
feat: add divider
Browse files Browse the repository at this point in the history
add divider between editor and preview
  • Loading branch information
Build Pipeline committed Nov 3, 2022
1 parent 586fe27 commit 7e12f86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PlantUML/PlantUMLEditorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ struct PlantUMLEditorView: View {
if( isEditorVisible ) {
PlantUMLLineEditorView( items: $diagram.items )
}
Divider()
if isPreviewVisible {
if isScaleToFit {
PlantUMLDiagramView( url: diagram.buildURL() )
Expand Down Expand Up @@ -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:
Expand All @@ -138,5 +140,6 @@ struct ContentView_Previews: PreviewProvider {
title test
"""))

}
}

0 comments on commit 7e12f86

Please sign in to comment.