Skip to content

Commit d7a4c31

Browse files
committed
minor changes
1 parent 9a76198 commit d7a4c31

File tree

4 files changed

+72
-4
lines changed

4 files changed

+72
-4
lines changed

SnippetsLibrary.xcodeproj/xcshareddata/xcschemes/SnippetsLibrary.xcscheme

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
</Testables>
5252
</TestAction>
5353
<LaunchAction
54-
buildConfiguration = "Release"
55-
selectedDebuggerIdentifier = ""
56-
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
54+
buildConfiguration = "Debug"
55+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
56+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
5757
launchStyle = "0"
5858
useCustomWorkingDirectory = "NO"
5959
ignoresPersistentStateOnLaunch = "NO"

SnippetsLibrary.xcodeproj/xcuserdata/krzysztoflowiec.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

+66
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,70 @@
33
uuid = "4CF96031-16E5-4164-A84D-1A0913920358"
44
type = "1"
55
version = "2.0">
6+
<Breakpoints>
7+
<BreakpointProxy
8+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
9+
<BreakpointContent
10+
uuid = "3FB27373-CF44-41FA-B31B-BBDE4A963229"
11+
shouldBeEnabled = "Yes"
12+
ignoreCount = "0"
13+
continueAfterRunningActions = "No"
14+
filePath = "../../../Library/Developer/Xcode/DerivedData/SnippetsLibrary-dwfqvwqmxsypxhdxhknmymhtensa/SourcePackages/checkouts/Sourceful/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift"
15+
startingColumnNumber = "9223372036854775807"
16+
endingColumnNumber = "9223372036854775807"
17+
startingLineNumber = "144"
18+
endingLineNumber = "144"
19+
landmarkName = "didChangeText(_:)"
20+
landmarkType = "7">
21+
</BreakpointContent>
22+
</BreakpointProxy>
23+
<BreakpointProxy
24+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
25+
<BreakpointContent
26+
uuid = "F6810A62-EAFA-49E1-A933-D69B63E4DB27"
27+
shouldBeEnabled = "Yes"
28+
ignoreCount = "0"
29+
continueAfterRunningActions = "No"
30+
filePath = "../../../Library/Developer/Xcode/DerivedData/SnippetsLibrary-dwfqvwqmxsypxhdxhknmymhtensa/SourcePackages/checkouts/Sourceful/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift"
31+
startingColumnNumber = "9223372036854775807"
32+
endingColumnNumber = "9223372036854775807"
33+
startingLineNumber = "139"
34+
endingLineNumber = "139"
35+
landmarkName = "didChangeText(_:)"
36+
landmarkType = "7">
37+
</BreakpointContent>
38+
</BreakpointProxy>
39+
<BreakpointProxy
40+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
41+
<BreakpointContent
42+
uuid = "40802F20-215F-4536-B882-EB66695CAE27"
43+
shouldBeEnabled = "Yes"
44+
ignoreCount = "0"
45+
continueAfterRunningActions = "No"
46+
filePath = "../../../Library/Developer/Xcode/DerivedData/SnippetsLibrary-dwfqvwqmxsypxhdxhknmymhtensa/SourcePackages/checkouts/Sourceful/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift"
47+
startingColumnNumber = "9223372036854775807"
48+
endingColumnNumber = "9223372036854775807"
49+
startingLineNumber = "148"
50+
endingLineNumber = "148"
51+
landmarkName = "textViewDidBeginEditing(_:)"
52+
landmarkType = "7">
53+
</BreakpointContent>
54+
</BreakpointProxy>
55+
<BreakpointProxy
56+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
57+
<BreakpointContent
58+
uuid = "B3B611B9-FF4B-4E2F-B422-FE971AEB2CAE"
59+
shouldBeEnabled = "Yes"
60+
ignoreCount = "0"
61+
continueAfterRunningActions = "No"
62+
filePath = "../../../Library/Developer/Xcode/DerivedData/SnippetsLibrary-dwfqvwqmxsypxhdxhknmymhtensa/SourcePackages/checkouts/Sourceful/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift"
63+
startingColumnNumber = "9223372036854775807"
64+
endingColumnNumber = "9223372036854775807"
65+
startingLineNumber = "140"
66+
endingLineNumber = "140"
67+
landmarkName = "didChangeText(_:)"
68+
landmarkType = "7">
69+
</BreakpointContent>
70+
</BreakpointProxy>
71+
</Breakpoints>
672
</Bucket>

SnippetsLibrary/Modules/SnippetDetails/SnippetDetailsView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct SnippetDetailsView: View {
2525
@Environment(\.colorScheme) var colorScheme
2626
@Environment (\.presentationMode) var presentationMode
2727

28-
@StateObject internal var viewModel: SnippetDetailsViewModel
28+
@ObservedObject var viewModel: SnippetDetailsViewModel
2929

3030
// MARK: - Views
3131

SnippetsLibrary/Modules/SnippetDetails/SnippetDetailsViewModel.swift

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ final class SnippetDetailsViewModel: ObservableObject {
1313
// MARK: - Stored Properties
1414

1515
@Published var snippet: Snippet
16+
@Published var text: String = ""
1617
@Binding private(set) var activeAppView: ActiveAppView?
1718

1819
let type: SnippetDetailsViewType
@@ -56,6 +57,7 @@ final class SnippetDetailsViewModel: ObservableObject {
5657
self.databaseService = databaseService
5758

5859
setup()
60+
text = snippet.content
5961
}
6062

6163
// MARK: - Methods

0 commit comments

Comments
 (0)