Skip to content

Commit

Permalink
refactor: remove edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Sep 12, 2023
1 parent e9b20c8 commit 39606d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PlantUML/PlantUMLContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct PlantUMLContentView: View {

@Environment(\.scenePhase) var scene
@Environment(\.interfaceOrientation) var interfaceOrientation: InterfaceOrientationHolder
@Environment(\.editMode) private var editMode
// @Environment(\.editMode) private var editMode
@Environment(\.openURL) private var openURL

@AppStorage("lightTheme") var lightTheme:String = CodeWebView.Theme.chrome.rawValue
Expand Down Expand Up @@ -137,7 +137,7 @@ struct PlantUMLContentView: View {
ToggleEditorButton()
if isEditorVisible {
HStack {
EditButton()
// EditButton()
fontSizeView()
toggleLineNumberView()
}
Expand Down Expand Up @@ -335,15 +335,15 @@ myactor -> participant1
NavigationView {
PlantUMLContentView( document: PlantUMLDocumentProxy( document: .constant(PlantUMLDocument())))
.previewDevice(PreviewDevice(rawValue: "iPad mini (6th generation)"))
.environment(\.editMode, Binding.constant(EditMode.inactive))
// .environment(\.editMode, Binding.constant(EditMode.inactive))
}
.navigationViewStyle(.stack)
.previewInterfaceOrientation(.landscapeRight)

NavigationView {
PlantUMLContentView( document: PlantUMLDocumentProxy( document: .constant(PlantUMLDocument())))
.previewDevice(PreviewDevice(rawValue: "iPad mini (6th generation)"))
.environment(\.editMode, Binding.constant(EditMode.inactive))
// .environment(\.editMode, Binding.constant(EditMode.inactive))
}
.navigationViewStyle(.stack)
.previewInterfaceOrientation(.portrait)
Expand Down

0 comments on commit 39606d5

Please sign in to comment.