├── Code
├── Assets.xcassets
│ ├── Contents.json
│ ├── AccentColor.colorset
│ │ └── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Preview Content
│ └── Preview Assets.xcassets
│ │ └── Contents.json
├── CodeApp.swift
├── Code.entitlements
├── Info.plist
└── ContentView.swift
├── README.md
└── Code.xcodeproj
├── project.xcworkspace
├── contents.xcworkspacedata
├── xcuserdata
│ └── jordansinger.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
└── xcshareddata
│ └── IDEWorkspaceChecks.plist
├── xcuserdata
└── jordansinger.xcuserdatad
│ └── xcschemes
│ └── xcschememanagement.plist
└── project.pbxproj
/Code/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/Code/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # text-editor-macos-sample
2 | SwiftUI text editor example app for macOS Big Sur
3 |
4 | 
5 |
--------------------------------------------------------------------------------
/Code.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Code/Assets.xcassets/AccentColor.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "idiom" : "universal"
5 | }
6 | ],
7 | "info" : {
8 | "author" : "xcode",
9 | "version" : 1
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Code.xcodeproj/project.xcworkspace/xcuserdata/jordansinger.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jordansinger/text-editor-macos-sample/HEAD/Code.xcodeproj/project.xcworkspace/xcuserdata/jordansinger.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Code/CodeApp.swift:
--------------------------------------------------------------------------------
1 | //
2 | // CodeApp.swift
3 | // Code
4 | //
5 | // Created by Jordan Singer on 9/6/20.
6 | //
7 |
8 | import SwiftUI
9 |
10 | @main
11 | struct CodeApp: App {
12 | var body: some Scene {
13 | WindowGroup {
14 | ContentView()
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Code.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Code/Code.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.files.user-selected.read-only
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Code.xcodeproj/xcuserdata/jordansinger.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Code.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Code/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSMinimumSystemVersion
22 | $(MACOSX_DEPLOYMENT_TARGET)
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Code/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "mac",
5 | "scale" : "1x",
6 | "size" : "16x16"
7 | },
8 | {
9 | "idiom" : "mac",
10 | "scale" : "2x",
11 | "size" : "16x16"
12 | },
13 | {
14 | "idiom" : "mac",
15 | "scale" : "1x",
16 | "size" : "32x32"
17 | },
18 | {
19 | "idiom" : "mac",
20 | "scale" : "2x",
21 | "size" : "32x32"
22 | },
23 | {
24 | "idiom" : "mac",
25 | "scale" : "1x",
26 | "size" : "128x128"
27 | },
28 | {
29 | "idiom" : "mac",
30 | "scale" : "2x",
31 | "size" : "128x128"
32 | },
33 | {
34 | "idiom" : "mac",
35 | "scale" : "1x",
36 | "size" : "256x256"
37 | },
38 | {
39 | "idiom" : "mac",
40 | "scale" : "2x",
41 | "size" : "256x256"
42 | },
43 | {
44 | "idiom" : "mac",
45 | "scale" : "1x",
46 | "size" : "512x512"
47 | },
48 | {
49 | "idiom" : "mac",
50 | "scale" : "2x",
51 | "size" : "512x512"
52 | }
53 | ],
54 | "info" : {
55 | "author" : "xcode",
56 | "version" : 1
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/Code/ContentView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ContentView.swift
3 | // Code
4 | //
5 | // Created by Jordan Singer on 9/6/20.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct FileItem: Hashable, Identifiable {
11 | var id: Self { self }
12 | var name: String
13 | var image: String
14 | var children: [FileItem]? = nil
15 | var selected: Bool = false
16 | }
17 |
18 | let data =
19 | FileItem(name: "Code", image: "folder", children:
20 | [
21 | FileItem(name: "assets", image: "folder", children: []),
22 | FileItem(name: "index.html", image: "doc", selected: true),
23 | FileItem(name: "style.css", image: "doc"),
24 | ])
25 |
26 | struct ContentView: View {
27 | @State var selection: Set = [0]
28 |
29 | var body: some View {
30 | NavigationView {
31 | List(selection: self.$selection) {
32 | Section(header: Text("Folders")) {
33 | OutlineGroup(data, children: \.children) { item in
34 | if item.selected {
35 | Label(item.name, systemImage: item.image)
36 | .tag(0)
37 | } else {
38 | Label(item.name, systemImage: item.image)
39 | }
40 | }
41 | }
42 | }
43 | .listStyle(SidebarListStyle())
44 | .frame(minWidth: 180, idealWidth: 180, maxWidth: 180, maxHeight: .infinity)
45 |
46 | CodeView()
47 | }
48 | }
49 | }
50 |
51 | struct CodeView: View {
52 | @State var text = ""
53 |
54 | var body: some View {
55 | ZStack {
56 | // demo syntax highlighting
57 | // HStack {
58 | // VStack(alignment: .leading, spacing: 4) {
59 | // Group {
60 | // Text("").foregroundColor(.gray)
61 | // }
62 | //
63 | // Group {
64 | // Text("<").foregroundColor(.gray) + Text("html").foregroundColor(.red) + Text(">").foregroundColor(.gray)
65 | // Text("<").foregroundColor(.gray) + Text("head").foregroundColor(.red) + Text(">").foregroundColor(.gray)
66 | // }
67 | //
68 | // HStack(spacing: 0) {
69 | // Group {
70 | // Text(" <").foregroundColor(.gray) + Text("title").foregroundColor(.red) + Text(">").foregroundColor(.gray)
71 | // }
72 | // Group {
73 | // Text("").foregroundColor(.gray) + Text("title").foregroundColor(.red) + Text(">").foregroundColor(.gray)
74 | // }
75 | // }
76 | //
77 | // Group {
78 | // Text("").foregroundColor(.gray) + Text("head").foregroundColor(.red) + Text(">").foregroundColor(.gray)
79 | // Text("<").foregroundColor(.gray) + Text("body").foregroundColor(.red) + Text(">").foregroundColor(.gray)
80 | // Text("")
81 | // Text("").foregroundColor(.gray) + Text("body").foregroundColor(.red) + Text(">").foregroundColor(.gray)
82 | // Text("").foregroundColor(.gray) + Text("html").foregroundColor(.red) + Text(">").foregroundColor(.gray)
83 | // }
84 | // Spacer()
85 | // }
86 | // Spacer()
87 | // }
88 | // .padding(8)
89 | // .font(.system(.body, design: .monospaced))
90 |
91 | TextEditor(text: $text)
92 | .padding(8)
93 | .font(.system(.body, design: .monospaced))
94 | }
95 | .background(Color(NSColor.textBackgroundColor))
96 | .toolbar {
97 | ToolbarItem(placement: .status) {
98 | Button(action: { }) {
99 | Image(systemName: "plus")
100 | }
101 | }
102 |
103 | }
104 | }
105 | }
106 |
107 | struct ContentView_Previews: PreviewProvider {
108 | static var previews: some View {
109 | ContentView()
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/Code.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 864E03DC2505396F00556EDF /* CodeApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 864E03DB2505396F00556EDF /* CodeApp.swift */; };
11 | 864E03DE2505396F00556EDF /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 864E03DD2505396F00556EDF /* ContentView.swift */; };
12 | 864E03E02505397100556EDF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 864E03DF2505397100556EDF /* Assets.xcassets */; };
13 | 864E03E32505397100556EDF /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 864E03E22505397100556EDF /* Preview Assets.xcassets */; };
14 | /* End PBXBuildFile section */
15 |
16 | /* Begin PBXFileReference section */
17 | 864E03D82505396F00556EDF /* Code.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Code.app; sourceTree = BUILT_PRODUCTS_DIR; };
18 | 864E03DB2505396F00556EDF /* CodeApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CodeApp.swift; sourceTree = ""; };
19 | 864E03DD2505396F00556EDF /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; };
20 | 864E03DF2505397100556EDF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
21 | 864E03E22505397100556EDF /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
22 | 864E03E42505397100556EDF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
23 | 864E03E52505397100556EDF /* Code.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Code.entitlements; sourceTree = ""; };
24 | /* End PBXFileReference section */
25 |
26 | /* Begin PBXFrameworksBuildPhase section */
27 | 864E03D52505396F00556EDF /* Frameworks */ = {
28 | isa = PBXFrameworksBuildPhase;
29 | buildActionMask = 2147483647;
30 | files = (
31 | );
32 | runOnlyForDeploymentPostprocessing = 0;
33 | };
34 | /* End PBXFrameworksBuildPhase section */
35 |
36 | /* Begin PBXGroup section */
37 | 864E03CF2505396F00556EDF = {
38 | isa = PBXGroup;
39 | children = (
40 | 864E03DA2505396F00556EDF /* Code */,
41 | 864E03D92505396F00556EDF /* Products */,
42 | );
43 | sourceTree = "";
44 | };
45 | 864E03D92505396F00556EDF /* Products */ = {
46 | isa = PBXGroup;
47 | children = (
48 | 864E03D82505396F00556EDF /* Code.app */,
49 | );
50 | name = Products;
51 | sourceTree = "";
52 | };
53 | 864E03DA2505396F00556EDF /* Code */ = {
54 | isa = PBXGroup;
55 | children = (
56 | 864E03DB2505396F00556EDF /* CodeApp.swift */,
57 | 864E03DD2505396F00556EDF /* ContentView.swift */,
58 | 864E03DF2505397100556EDF /* Assets.xcassets */,
59 | 864E03E42505397100556EDF /* Info.plist */,
60 | 864E03E52505397100556EDF /* Code.entitlements */,
61 | 864E03E12505397100556EDF /* Preview Content */,
62 | );
63 | path = Code;
64 | sourceTree = "";
65 | };
66 | 864E03E12505397100556EDF /* Preview Content */ = {
67 | isa = PBXGroup;
68 | children = (
69 | 864E03E22505397100556EDF /* Preview Assets.xcassets */,
70 | );
71 | path = "Preview Content";
72 | sourceTree = "";
73 | };
74 | /* End PBXGroup section */
75 |
76 | /* Begin PBXNativeTarget section */
77 | 864E03D72505396F00556EDF /* Code */ = {
78 | isa = PBXNativeTarget;
79 | buildConfigurationList = 864E03E82505397100556EDF /* Build configuration list for PBXNativeTarget "Code" */;
80 | buildPhases = (
81 | 864E03D42505396F00556EDF /* Sources */,
82 | 864E03D52505396F00556EDF /* Frameworks */,
83 | 864E03D62505396F00556EDF /* Resources */,
84 | );
85 | buildRules = (
86 | );
87 | dependencies = (
88 | );
89 | name = Code;
90 | productName = Code;
91 | productReference = 864E03D82505396F00556EDF /* Code.app */;
92 | productType = "com.apple.product-type.application";
93 | };
94 | /* End PBXNativeTarget section */
95 |
96 | /* Begin PBXProject section */
97 | 864E03D02505396F00556EDF /* Project object */ = {
98 | isa = PBXProject;
99 | attributes = {
100 | LastSwiftUpdateCheck = 1200;
101 | LastUpgradeCheck = 1200;
102 | TargetAttributes = {
103 | 864E03D72505396F00556EDF = {
104 | CreatedOnToolsVersion = 12.0;
105 | };
106 | };
107 | };
108 | buildConfigurationList = 864E03D32505396F00556EDF /* Build configuration list for PBXProject "Code" */;
109 | compatibilityVersion = "Xcode 9.3";
110 | developmentRegion = en;
111 | hasScannedForEncodings = 0;
112 | knownRegions = (
113 | en,
114 | Base,
115 | );
116 | mainGroup = 864E03CF2505396F00556EDF;
117 | productRefGroup = 864E03D92505396F00556EDF /* Products */;
118 | projectDirPath = "";
119 | projectRoot = "";
120 | targets = (
121 | 864E03D72505396F00556EDF /* Code */,
122 | );
123 | };
124 | /* End PBXProject section */
125 |
126 | /* Begin PBXResourcesBuildPhase section */
127 | 864E03D62505396F00556EDF /* Resources */ = {
128 | isa = PBXResourcesBuildPhase;
129 | buildActionMask = 2147483647;
130 | files = (
131 | 864E03E32505397100556EDF /* Preview Assets.xcassets in Resources */,
132 | 864E03E02505397100556EDF /* Assets.xcassets in Resources */,
133 | );
134 | runOnlyForDeploymentPostprocessing = 0;
135 | };
136 | /* End PBXResourcesBuildPhase section */
137 |
138 | /* Begin PBXSourcesBuildPhase section */
139 | 864E03D42505396F00556EDF /* Sources */ = {
140 | isa = PBXSourcesBuildPhase;
141 | buildActionMask = 2147483647;
142 | files = (
143 | 864E03DE2505396F00556EDF /* ContentView.swift in Sources */,
144 | 864E03DC2505396F00556EDF /* CodeApp.swift in Sources */,
145 | );
146 | runOnlyForDeploymentPostprocessing = 0;
147 | };
148 | /* End PBXSourcesBuildPhase section */
149 |
150 | /* Begin XCBuildConfiguration section */
151 | 864E03E62505397100556EDF /* Debug */ = {
152 | isa = XCBuildConfiguration;
153 | buildSettings = {
154 | ALWAYS_SEARCH_USER_PATHS = NO;
155 | CLANG_ANALYZER_NONNULL = YES;
156 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
157 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
158 | CLANG_CXX_LIBRARY = "libc++";
159 | CLANG_ENABLE_MODULES = YES;
160 | CLANG_ENABLE_OBJC_ARC = YES;
161 | CLANG_ENABLE_OBJC_WEAK = YES;
162 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
163 | CLANG_WARN_BOOL_CONVERSION = YES;
164 | CLANG_WARN_COMMA = YES;
165 | CLANG_WARN_CONSTANT_CONVERSION = YES;
166 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
167 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
168 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
169 | CLANG_WARN_EMPTY_BODY = YES;
170 | CLANG_WARN_ENUM_CONVERSION = YES;
171 | CLANG_WARN_INFINITE_RECURSION = YES;
172 | CLANG_WARN_INT_CONVERSION = YES;
173 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
174 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
175 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
176 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
177 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
178 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
179 | CLANG_WARN_STRICT_PROTOTYPES = YES;
180 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
181 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
182 | CLANG_WARN_UNREACHABLE_CODE = YES;
183 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
184 | COPY_PHASE_STRIP = NO;
185 | DEBUG_INFORMATION_FORMAT = dwarf;
186 | ENABLE_STRICT_OBJC_MSGSEND = YES;
187 | ENABLE_TESTABILITY = YES;
188 | GCC_C_LANGUAGE_STANDARD = gnu11;
189 | GCC_DYNAMIC_NO_PIC = NO;
190 | GCC_NO_COMMON_BLOCKS = YES;
191 | GCC_OPTIMIZATION_LEVEL = 0;
192 | GCC_PREPROCESSOR_DEFINITIONS = (
193 | "DEBUG=1",
194 | "$(inherited)",
195 | );
196 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
197 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
198 | GCC_WARN_UNDECLARED_SELECTOR = YES;
199 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
200 | GCC_WARN_UNUSED_FUNCTION = YES;
201 | GCC_WARN_UNUSED_VARIABLE = YES;
202 | MACOSX_DEPLOYMENT_TARGET = 11.0;
203 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
204 | MTL_FAST_MATH = YES;
205 | ONLY_ACTIVE_ARCH = YES;
206 | SDKROOT = macosx;
207 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
208 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
209 | };
210 | name = Debug;
211 | };
212 | 864E03E72505397100556EDF /* Release */ = {
213 | isa = XCBuildConfiguration;
214 | buildSettings = {
215 | ALWAYS_SEARCH_USER_PATHS = NO;
216 | CLANG_ANALYZER_NONNULL = YES;
217 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
218 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
219 | CLANG_CXX_LIBRARY = "libc++";
220 | CLANG_ENABLE_MODULES = YES;
221 | CLANG_ENABLE_OBJC_ARC = YES;
222 | CLANG_ENABLE_OBJC_WEAK = YES;
223 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
224 | CLANG_WARN_BOOL_CONVERSION = YES;
225 | CLANG_WARN_COMMA = YES;
226 | CLANG_WARN_CONSTANT_CONVERSION = YES;
227 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
228 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
229 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
230 | CLANG_WARN_EMPTY_BODY = YES;
231 | CLANG_WARN_ENUM_CONVERSION = YES;
232 | CLANG_WARN_INFINITE_RECURSION = YES;
233 | CLANG_WARN_INT_CONVERSION = YES;
234 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
235 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
236 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
237 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
238 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
239 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
240 | CLANG_WARN_STRICT_PROTOTYPES = YES;
241 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
242 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
243 | CLANG_WARN_UNREACHABLE_CODE = YES;
244 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
245 | COPY_PHASE_STRIP = NO;
246 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
247 | ENABLE_NS_ASSERTIONS = NO;
248 | ENABLE_STRICT_OBJC_MSGSEND = YES;
249 | GCC_C_LANGUAGE_STANDARD = gnu11;
250 | GCC_NO_COMMON_BLOCKS = YES;
251 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
252 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
253 | GCC_WARN_UNDECLARED_SELECTOR = YES;
254 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
255 | GCC_WARN_UNUSED_FUNCTION = YES;
256 | GCC_WARN_UNUSED_VARIABLE = YES;
257 | MACOSX_DEPLOYMENT_TARGET = 11.0;
258 | MTL_ENABLE_DEBUG_INFO = NO;
259 | MTL_FAST_MATH = YES;
260 | SDKROOT = macosx;
261 | SWIFT_COMPILATION_MODE = wholemodule;
262 | SWIFT_OPTIMIZATION_LEVEL = "-O";
263 | };
264 | name = Release;
265 | };
266 | 864E03E92505397100556EDF /* Debug */ = {
267 | isa = XCBuildConfiguration;
268 | buildSettings = {
269 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
270 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
271 | CODE_SIGN_ENTITLEMENTS = Code/Code.entitlements;
272 | CODE_SIGN_STYLE = Automatic;
273 | COMBINE_HIDPI_IMAGES = YES;
274 | DEVELOPMENT_ASSET_PATHS = "\"Code/Preview Content\"";
275 | ENABLE_PREVIEWS = YES;
276 | INFOPLIST_FILE = Code/Info.plist;
277 | LD_RUNPATH_SEARCH_PATHS = (
278 | "$(inherited)",
279 | "@executable_path/../Frameworks",
280 | );
281 | MACOSX_DEPLOYMENT_TARGET = 11.0;
282 | PRODUCT_BUNDLE_IDENTIFIER = example.Code;
283 | PRODUCT_NAME = "$(TARGET_NAME)";
284 | SWIFT_VERSION = 5.0;
285 | };
286 | name = Debug;
287 | };
288 | 864E03EA2505397100556EDF /* Release */ = {
289 | isa = XCBuildConfiguration;
290 | buildSettings = {
291 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
292 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
293 | CODE_SIGN_ENTITLEMENTS = Code/Code.entitlements;
294 | CODE_SIGN_STYLE = Automatic;
295 | COMBINE_HIDPI_IMAGES = YES;
296 | DEVELOPMENT_ASSET_PATHS = "\"Code/Preview Content\"";
297 | ENABLE_PREVIEWS = YES;
298 | INFOPLIST_FILE = Code/Info.plist;
299 | LD_RUNPATH_SEARCH_PATHS = (
300 | "$(inherited)",
301 | "@executable_path/../Frameworks",
302 | );
303 | MACOSX_DEPLOYMENT_TARGET = 11.0;
304 | PRODUCT_BUNDLE_IDENTIFIER = example.Code;
305 | PRODUCT_NAME = "$(TARGET_NAME)";
306 | SWIFT_VERSION = 5.0;
307 | };
308 | name = Release;
309 | };
310 | /* End XCBuildConfiguration section */
311 |
312 | /* Begin XCConfigurationList section */
313 | 864E03D32505396F00556EDF /* Build configuration list for PBXProject "Code" */ = {
314 | isa = XCConfigurationList;
315 | buildConfigurations = (
316 | 864E03E62505397100556EDF /* Debug */,
317 | 864E03E72505397100556EDF /* Release */,
318 | );
319 | defaultConfigurationIsVisible = 0;
320 | defaultConfigurationName = Release;
321 | };
322 | 864E03E82505397100556EDF /* Build configuration list for PBXNativeTarget "Code" */ = {
323 | isa = XCConfigurationList;
324 | buildConfigurations = (
325 | 864E03E92505397100556EDF /* Debug */,
326 | 864E03EA2505397100556EDF /* Release */,
327 | );
328 | defaultConfigurationIsVisible = 0;
329 | defaultConfigurationName = Release;
330 | };
331 | /* End XCConfigurationList section */
332 | };
333 | rootObject = 864E03D02505396F00556EDF /* Project object */;
334 | }
335 |
--------------------------------------------------------------------------------