Skip to content

Commit 5896790

Browse files
committed
Add example
1 parent a3319c1 commit 5896790

9 files changed

Lines changed: 490 additions & 0 deletions

File tree

Lines changed: 345 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,345 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 56;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
3CD8B78C29A683D100463C48 /* SettingExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3CD8B78B29A683D100463C48 /* SettingExampleApp.swift */; };
11+
3CD8B78E29A683D100463C48 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3CD8B78D29A683D100463C48 /* ContentView.swift */; };
12+
3CD8B79029A683D300463C48 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3CD8B78F29A683D300463C48 /* Assets.xcassets */; };
13+
/* End PBXBuildFile section */
14+
15+
/* Begin PBXFileReference section */
16+
3CD8B78829A683D100463C48 /* SettingExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SettingExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
17+
3CD8B78B29A683D100463C48 /* SettingExampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingExampleApp.swift; sourceTree = "<group>"; };
18+
3CD8B78D29A683D100463C48 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
19+
3CD8B78F29A683D300463C48 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
20+
3CD8B79129A683D300463C48 /* SettingExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SettingExample.entitlements; sourceTree = "<group>"; };
21+
/* End PBXFileReference section */
22+
23+
/* Begin PBXFrameworksBuildPhase section */
24+
3CD8B78529A683D100463C48 /* Frameworks */ = {
25+
isa = PBXFrameworksBuildPhase;
26+
buildActionMask = 2147483647;
27+
files = (
28+
);
29+
runOnlyForDeploymentPostprocessing = 0;
30+
};
31+
/* End PBXFrameworksBuildPhase section */
32+
33+
/* Begin PBXGroup section */
34+
3CD8B77F29A683D100463C48 = {
35+
isa = PBXGroup;
36+
children = (
37+
3CD8B78A29A683D100463C48 /* SettingExample */,
38+
3CD8B78929A683D100463C48 /* Products */,
39+
);
40+
sourceTree = "<group>";
41+
};
42+
3CD8B78929A683D100463C48 /* Products */ = {
43+
isa = PBXGroup;
44+
children = (
45+
3CD8B78829A683D100463C48 /* SettingExample.app */,
46+
);
47+
name = Products;
48+
sourceTree = "<group>";
49+
};
50+
3CD8B78A29A683D100463C48 /* SettingExample */ = {
51+
isa = PBXGroup;
52+
children = (
53+
3CD8B78B29A683D100463C48 /* SettingExampleApp.swift */,
54+
3CD8B78D29A683D100463C48 /* ContentView.swift */,
55+
3CD8B78F29A683D300463C48 /* Assets.xcassets */,
56+
3CD8B79129A683D300463C48 /* SettingExample.entitlements */,
57+
);
58+
path = SettingExample;
59+
sourceTree = "<group>";
60+
};
61+
/* End PBXGroup section */
62+
63+
/* Begin PBXNativeTarget section */
64+
3CD8B78729A683D100463C48 /* SettingExample */ = {
65+
isa = PBXNativeTarget;
66+
buildConfigurationList = 3CD8B79729A683D300463C48 /* Build configuration list for PBXNativeTarget "SettingExample" */;
67+
buildPhases = (
68+
3CD8B78429A683D100463C48 /* Sources */,
69+
3CD8B78529A683D100463C48 /* Frameworks */,
70+
3CD8B78629A683D100463C48 /* Resources */,
71+
);
72+
buildRules = (
73+
);
74+
dependencies = (
75+
);
76+
name = SettingExample;
77+
productName = SettingExample;
78+
productReference = 3CD8B78829A683D100463C48 /* SettingExample.app */;
79+
productType = "com.apple.product-type.application";
80+
};
81+
/* End PBXNativeTarget section */
82+
83+
/* Begin PBXProject section */
84+
3CD8B78029A683D100463C48 /* Project object */ = {
85+
isa = PBXProject;
86+
attributes = {
87+
BuildIndependentTargetsInParallel = 1;
88+
LastSwiftUpdateCheck = 1420;
89+
LastUpgradeCheck = 1420;
90+
TargetAttributes = {
91+
3CD8B78729A683D100463C48 = {
92+
CreatedOnToolsVersion = 14.2;
93+
};
94+
};
95+
};
96+
buildConfigurationList = 3CD8B78329A683D100463C48 /* Build configuration list for PBXProject "SettingExample" */;
97+
compatibilityVersion = "Xcode 14.0";
98+
developmentRegion = en;
99+
hasScannedForEncodings = 0;
100+
knownRegions = (
101+
en,
102+
Base,
103+
);
104+
mainGroup = 3CD8B77F29A683D100463C48;
105+
productRefGroup = 3CD8B78929A683D100463C48 /* Products */;
106+
projectDirPath = "";
107+
projectRoot = "";
108+
targets = (
109+
3CD8B78729A683D100463C48 /* SettingExample */,
110+
);
111+
};
112+
/* End PBXProject section */
113+
114+
/* Begin PBXResourcesBuildPhase section */
115+
3CD8B78629A683D100463C48 /* Resources */ = {
116+
isa = PBXResourcesBuildPhase;
117+
buildActionMask = 2147483647;
118+
files = (
119+
3CD8B79029A683D300463C48 /* Assets.xcassets in Resources */,
120+
);
121+
runOnlyForDeploymentPostprocessing = 0;
122+
};
123+
/* End PBXResourcesBuildPhase section */
124+
125+
/* Begin PBXSourcesBuildPhase section */
126+
3CD8B78429A683D100463C48 /* Sources */ = {
127+
isa = PBXSourcesBuildPhase;
128+
buildActionMask = 2147483647;
129+
files = (
130+
3CD8B78E29A683D100463C48 /* ContentView.swift in Sources */,
131+
3CD8B78C29A683D100463C48 /* SettingExampleApp.swift in Sources */,
132+
);
133+
runOnlyForDeploymentPostprocessing = 0;
134+
};
135+
/* End PBXSourcesBuildPhase section */
136+
137+
/* Begin XCBuildConfiguration section */
138+
3CD8B79529A683D300463C48 /* Debug */ = {
139+
isa = XCBuildConfiguration;
140+
buildSettings = {
141+
ALWAYS_SEARCH_USER_PATHS = NO;
142+
CLANG_ANALYZER_NONNULL = YES;
143+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
144+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
145+
CLANG_ENABLE_MODULES = YES;
146+
CLANG_ENABLE_OBJC_ARC = YES;
147+
CLANG_ENABLE_OBJC_WEAK = YES;
148+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
149+
CLANG_WARN_BOOL_CONVERSION = YES;
150+
CLANG_WARN_COMMA = YES;
151+
CLANG_WARN_CONSTANT_CONVERSION = YES;
152+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
153+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
154+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
155+
CLANG_WARN_EMPTY_BODY = YES;
156+
CLANG_WARN_ENUM_CONVERSION = YES;
157+
CLANG_WARN_INFINITE_RECURSION = YES;
158+
CLANG_WARN_INT_CONVERSION = YES;
159+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
160+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
161+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
162+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
163+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
164+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
165+
CLANG_WARN_STRICT_PROTOTYPES = YES;
166+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
167+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
168+
CLANG_WARN_UNREACHABLE_CODE = YES;
169+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
170+
COPY_PHASE_STRIP = NO;
171+
DEBUG_INFORMATION_FORMAT = dwarf;
172+
ENABLE_STRICT_OBJC_MSGSEND = YES;
173+
ENABLE_TESTABILITY = YES;
174+
GCC_C_LANGUAGE_STANDARD = gnu11;
175+
GCC_DYNAMIC_NO_PIC = NO;
176+
GCC_NO_COMMON_BLOCKS = YES;
177+
GCC_OPTIMIZATION_LEVEL = 0;
178+
GCC_PREPROCESSOR_DEFINITIONS = (
179+
"DEBUG=1",
180+
"$(inherited)",
181+
);
182+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
183+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
184+
GCC_WARN_UNDECLARED_SELECTOR = YES;
185+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
186+
GCC_WARN_UNUSED_FUNCTION = YES;
187+
GCC_WARN_UNUSED_VARIABLE = YES;
188+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
189+
MTL_FAST_MATH = YES;
190+
ONLY_ACTIVE_ARCH = YES;
191+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
192+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
193+
};
194+
name = Debug;
195+
};
196+
3CD8B79629A683D300463C48 /* Release */ = {
197+
isa = XCBuildConfiguration;
198+
buildSettings = {
199+
ALWAYS_SEARCH_USER_PATHS = NO;
200+
CLANG_ANALYZER_NONNULL = YES;
201+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
202+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
203+
CLANG_ENABLE_MODULES = YES;
204+
CLANG_ENABLE_OBJC_ARC = YES;
205+
CLANG_ENABLE_OBJC_WEAK = YES;
206+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
207+
CLANG_WARN_BOOL_CONVERSION = YES;
208+
CLANG_WARN_COMMA = YES;
209+
CLANG_WARN_CONSTANT_CONVERSION = YES;
210+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
211+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
212+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
213+
CLANG_WARN_EMPTY_BODY = YES;
214+
CLANG_WARN_ENUM_CONVERSION = YES;
215+
CLANG_WARN_INFINITE_RECURSION = YES;
216+
CLANG_WARN_INT_CONVERSION = YES;
217+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
218+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
219+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
220+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
221+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
222+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
223+
CLANG_WARN_STRICT_PROTOTYPES = YES;
224+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
225+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
226+
CLANG_WARN_UNREACHABLE_CODE = YES;
227+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
228+
COPY_PHASE_STRIP = NO;
229+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
230+
ENABLE_NS_ASSERTIONS = NO;
231+
ENABLE_STRICT_OBJC_MSGSEND = YES;
232+
GCC_C_LANGUAGE_STANDARD = gnu11;
233+
GCC_NO_COMMON_BLOCKS = YES;
234+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
235+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
236+
GCC_WARN_UNDECLARED_SELECTOR = YES;
237+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
238+
GCC_WARN_UNUSED_FUNCTION = YES;
239+
GCC_WARN_UNUSED_VARIABLE = YES;
240+
MTL_ENABLE_DEBUG_INFO = NO;
241+
MTL_FAST_MATH = YES;
242+
SWIFT_COMPILATION_MODE = wholemodule;
243+
SWIFT_OPTIMIZATION_LEVEL = "-O";
244+
};
245+
name = Release;
246+
};
247+
3CD8B79829A683D300463C48 /* Debug */ = {
248+
isa = XCBuildConfiguration;
249+
buildSettings = {
250+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
251+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
252+
CODE_SIGN_ENTITLEMENTS = SettingExample/SettingExample.entitlements;
253+
CODE_SIGN_STYLE = Automatic;
254+
CURRENT_PROJECT_VERSION = 1;
255+
DEVELOPMENT_TEAM = WV6XDLHK3W;
256+
ENABLE_HARDENED_RUNTIME = YES;
257+
ENABLE_PREVIEWS = YES;
258+
GENERATE_INFOPLIST_FILE = YES;
259+
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
260+
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
261+
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
262+
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES;
263+
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES;
264+
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES;
265+
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault;
266+
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
267+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
268+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
269+
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
270+
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
271+
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
272+
MACOSX_DEPLOYMENT_TARGET = 13.0;
273+
MARKETING_VERSION = 1.0;
274+
PRODUCT_BUNDLE_IDENTIFIER = com.aheze.SettingExample;
275+
PRODUCT_NAME = "$(TARGET_NAME)";
276+
SDKROOT = auto;
277+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
278+
SWIFT_EMIT_LOC_STRINGS = YES;
279+
SWIFT_VERSION = 5.0;
280+
TARGETED_DEVICE_FAMILY = "1,2";
281+
};
282+
name = Debug;
283+
};
284+
3CD8B79929A683D300463C48 /* Release */ = {
285+
isa = XCBuildConfiguration;
286+
buildSettings = {
287+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
288+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
289+
CODE_SIGN_ENTITLEMENTS = SettingExample/SettingExample.entitlements;
290+
CODE_SIGN_STYLE = Automatic;
291+
CURRENT_PROJECT_VERSION = 1;
292+
DEVELOPMENT_TEAM = WV6XDLHK3W;
293+
ENABLE_HARDENED_RUNTIME = YES;
294+
ENABLE_PREVIEWS = YES;
295+
GENERATE_INFOPLIST_FILE = YES;
296+
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
297+
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
298+
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
299+
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES;
300+
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES;
301+
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES;
302+
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault;
303+
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
304+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
305+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
306+
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
307+
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
308+
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
309+
MACOSX_DEPLOYMENT_TARGET = 13.0;
310+
MARKETING_VERSION = 1.0;
311+
PRODUCT_BUNDLE_IDENTIFIER = com.aheze.SettingExample;
312+
PRODUCT_NAME = "$(TARGET_NAME)";
313+
SDKROOT = auto;
314+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
315+
SWIFT_EMIT_LOC_STRINGS = YES;
316+
SWIFT_VERSION = 5.0;
317+
TARGETED_DEVICE_FAMILY = "1,2";
318+
};
319+
name = Release;
320+
};
321+
/* End XCBuildConfiguration section */
322+
323+
/* Begin XCConfigurationList section */
324+
3CD8B78329A683D100463C48 /* Build configuration list for PBXProject "SettingExample" */ = {
325+
isa = XCConfigurationList;
326+
buildConfigurations = (
327+
3CD8B79529A683D300463C48 /* Debug */,
328+
3CD8B79629A683D300463C48 /* Release */,
329+
);
330+
defaultConfigurationIsVisible = 0;
331+
defaultConfigurationName = Release;
332+
};
333+
3CD8B79729A683D300463C48 /* Build configuration list for PBXNativeTarget "SettingExample" */ = {
334+
isa = XCConfigurationList;
335+
buildConfigurations = (
336+
3CD8B79829A683D300463C48 /* Debug */,
337+
3CD8B79929A683D300463C48 /* Release */,
338+
);
339+
defaultConfigurationIsVisible = 0;
340+
defaultConfigurationName = Release;
341+
};
342+
/* End XCConfigurationList section */
343+
};
344+
rootObject = 3CD8B78029A683D100463C48 /* Project object */;
345+
}

Example/SettingExample/SettingExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}

0 commit comments

Comments
 (0)