Skip to content

Commit b93aa5c

Browse files
committed
Add Adapter for SwiftUI
1 parent 9c0b018 commit b93aa5c

File tree

15 files changed

+819
-0
lines changed

15 files changed

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

Example/ImaginarySwiftUIDemo/ImaginarySwiftUIDemo.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>

0 commit comments

Comments
 (0)