We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9ad475 commit ff8980aCopy full SHA for ff8980a
1 file changed
CodeEdit/Features/Welcome/Model/RecentProjectsStore.swift
@@ -27,10 +27,17 @@ class RecentProjectsStore {
27
/// The storage location for recent projects
28
let defaults: UserDefaults
29
30
+ #if DEBUG
31
/// Create a new store with a `UserDefaults` storage location.
32
init(defaults: UserDefaults = UserDefaults.standard) {
33
self.defaults = defaults
34
}
35
+ #else
36
+ /// Create a new store with a `UserDefaults` storage location.
37
+ private init(defaults: UserDefaults = UserDefaults.standard) {
38
+ self.defaults = defaults
39
+ }
40
+ #endif
41
42
/// Gets the recent paths array from `UserDefaults`.
43
private func recentPaths() -> [String] {
0 commit comments