File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
Example/CodeEditSourceEditorExample/CodeEditSourceEditorExample/Views Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,8 @@ struct ContentView: View {
2828 @State private var treeSitterClient = TreeSitterClient ( )
2929 @AppStorage ( " showMinimap " ) private var showMinimap : Bool = true
3030 @State private var indentOption : IndentOption = . spaces( count: 4 )
31- @AppStorage ( " reformatAtColumn " ) private var reformatAtColumn : Int = 80 {
32- didSet {
33- print ( " reformatAtColumn changed to: \( reformatAtColumn) " )
34- }
35- }
36- @AppStorage ( " showReformattingGuide " ) private var showReformattingGuide : Bool = false {
37- didSet {
38- print ( " showReformattingGuide changed to: \( showReformattingGuide) " )
39- }
40- }
31+ @AppStorage ( " reformatAtColumn " ) private var reformatAtColumn : Int = 80
32+ @AppStorage ( " showReformattingGuide " ) private var showReformattingGuide : Bool = false
4133
4234 init ( document: Binding < CodeEditSourceEditorExampleDocument > , fileURL: URL ? ) {
4335 self . _document = document
@@ -101,12 +93,6 @@ struct ContentView: View {
10193 theme = . light
10294 }
10395 }
104- . onChange ( of: reformatAtColumn) { _, newValue in
105- print ( " ContentView: reformatAtColumn changed to \( newValue) " )
106- }
107- . onChange ( of: showReformattingGuide) { _, newValue in
108- print ( " ContentView: showReformattingGuide changed to \( newValue) " )
109- }
11096 }
11197 }
11298}
You can’t perform that action at this time.
0 commit comments