Skip to content

Commit 8768d5c

Browse files
committed
add FB8984997 - SwiftUI keyboardShortcut does not work when displayed via UIHostingController
1 parent 2d957f2 commit 8768d5c

File tree

16 files changed

+793
-0
lines changed

16 files changed

+793
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
uuid = "68493FFA-C72F-4068-A253-F9F1D02FCB5A"
4+
type = "4"
5+
version = "2.0">
6+
</Bucket>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,356 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 50;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
7878067525C5B6AC00ED7460 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7878067425C5B6AC00ED7460 /* AppDelegate.swift */; };
11+
7878067725C5B6AC00ED7460 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7878067625C5B6AC00ED7460 /* SceneDelegate.swift */; };
12+
7878067925C5B6AC00ED7460 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7878067825C5B6AC00ED7460 /* ViewController.swift */; };
13+
7878067C25C5B6AC00ED7460 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7878067A25C5B6AC00ED7460 /* Main.storyboard */; };
14+
7878067E25C5B6AE00ED7460 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7878067D25C5B6AE00ED7460 /* Assets.xcassets */; };
15+
7878068125C5B6AE00ED7460 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7878067F25C5B6AE00ED7460 /* LaunchScreen.storyboard */; };
16+
7878068A25C5B6BA00ED7460 /* SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7878068925C5B6BA00ED7460 /* SwiftUIView.swift */; };
17+
/* End PBXBuildFile section */
18+
19+
/* Begin PBXFileReference section */
20+
7878067125C5B6AC00ED7460 /* SwiftUIKeyboard.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftUIKeyboard.app; sourceTree = BUILT_PRODUCTS_DIR; };
21+
7878067425C5B6AC00ED7460 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
22+
7878067625C5B6AC00ED7460 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
23+
7878067825C5B6AC00ED7460 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
24+
7878067B25C5B6AC00ED7460 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
25+
7878067D25C5B6AE00ED7460 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
26+
7878068025C5B6AE00ED7460 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
27+
7878068225C5B6AE00ED7460 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
28+
7878068925C5B6BA00ED7460 /* SwiftUIView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftUIView.swift; sourceTree = "<group>"; };
29+
7878068C25C5BA5000ED7460 /* SwiftUIKeyboard.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SwiftUIKeyboard.entitlements; sourceTree = "<group>"; };
30+
/* End PBXFileReference section */
31+
32+
/* Begin PBXFrameworksBuildPhase section */
33+
7878066E25C5B6AC00ED7460 /* Frameworks */ = {
34+
isa = PBXFrameworksBuildPhase;
35+
buildActionMask = 2147483647;
36+
files = (
37+
);
38+
runOnlyForDeploymentPostprocessing = 0;
39+
};
40+
/* End PBXFrameworksBuildPhase section */
41+
42+
/* Begin PBXGroup section */
43+
7878066825C5B6AC00ED7460 = {
44+
isa = PBXGroup;
45+
children = (
46+
7878067325C5B6AC00ED7460 /* SwiftUIKeyboard */,
47+
7878067225C5B6AC00ED7460 /* Products */,
48+
);
49+
sourceTree = "<group>";
50+
};
51+
7878067225C5B6AC00ED7460 /* Products */ = {
52+
isa = PBXGroup;
53+
children = (
54+
7878067125C5B6AC00ED7460 /* SwiftUIKeyboard.app */,
55+
);
56+
name = Products;
57+
sourceTree = "<group>";
58+
};
59+
7878067325C5B6AC00ED7460 /* SwiftUIKeyboard */ = {
60+
isa = PBXGroup;
61+
children = (
62+
7878068C25C5BA5000ED7460 /* SwiftUIKeyboard.entitlements */,
63+
7878067425C5B6AC00ED7460 /* AppDelegate.swift */,
64+
7878067625C5B6AC00ED7460 /* SceneDelegate.swift */,
65+
7878067825C5B6AC00ED7460 /* ViewController.swift */,
66+
7878067A25C5B6AC00ED7460 /* Main.storyboard */,
67+
7878067D25C5B6AE00ED7460 /* Assets.xcassets */,
68+
7878067F25C5B6AE00ED7460 /* LaunchScreen.storyboard */,
69+
7878068225C5B6AE00ED7460 /* Info.plist */,
70+
7878068925C5B6BA00ED7460 /* SwiftUIView.swift */,
71+
);
72+
path = SwiftUIKeyboard;
73+
sourceTree = "<group>";
74+
};
75+
/* End PBXGroup section */
76+
77+
/* Begin PBXNativeTarget section */
78+
7878067025C5B6AC00ED7460 /* SwiftUIKeyboard */ = {
79+
isa = PBXNativeTarget;
80+
buildConfigurationList = 7878068525C5B6AE00ED7460 /* Build configuration list for PBXNativeTarget "SwiftUIKeyboard" */;
81+
buildPhases = (
82+
7878066D25C5B6AC00ED7460 /* Sources */,
83+
7878066E25C5B6AC00ED7460 /* Frameworks */,
84+
7878066F25C5B6AC00ED7460 /* Resources */,
85+
);
86+
buildRules = (
87+
);
88+
dependencies = (
89+
);
90+
name = SwiftUIKeyboard;
91+
productName = SwiftUIKeyboard;
92+
productReference = 7878067125C5B6AC00ED7460 /* SwiftUIKeyboard.app */;
93+
productType = "com.apple.product-type.application";
94+
};
95+
/* End PBXNativeTarget section */
96+
97+
/* Begin PBXProject section */
98+
7878066925C5B6AC00ED7460 /* Project object */ = {
99+
isa = PBXProject;
100+
attributes = {
101+
LastSwiftUpdateCheck = 1240;
102+
LastUpgradeCheck = 1240;
103+
TargetAttributes = {
104+
7878067025C5B6AC00ED7460 = {
105+
CreatedOnToolsVersion = 12.4;
106+
};
107+
};
108+
};
109+
buildConfigurationList = 7878066C25C5B6AC00ED7460 /* Build configuration list for PBXProject "SwiftUIKeyboard" */;
110+
compatibilityVersion = "Xcode 9.3";
111+
developmentRegion = en;
112+
hasScannedForEncodings = 0;
113+
knownRegions = (
114+
en,
115+
Base,
116+
);
117+
mainGroup = 7878066825C5B6AC00ED7460;
118+
productRefGroup = 7878067225C5B6AC00ED7460 /* Products */;
119+
projectDirPath = "";
120+
projectRoot = "";
121+
targets = (
122+
7878067025C5B6AC00ED7460 /* SwiftUIKeyboard */,
123+
);
124+
};
125+
/* End PBXProject section */
126+
127+
/* Begin PBXResourcesBuildPhase section */
128+
7878066F25C5B6AC00ED7460 /* Resources */ = {
129+
isa = PBXResourcesBuildPhase;
130+
buildActionMask = 2147483647;
131+
files = (
132+
7878068125C5B6AE00ED7460 /* LaunchScreen.storyboard in Resources */,
133+
7878067E25C5B6AE00ED7460 /* Assets.xcassets in Resources */,
134+
7878067C25C5B6AC00ED7460 /* Main.storyboard in Resources */,
135+
);
136+
runOnlyForDeploymentPostprocessing = 0;
137+
};
138+
/* End PBXResourcesBuildPhase section */
139+
140+
/* Begin PBXSourcesBuildPhase section */
141+
7878066D25C5B6AC00ED7460 /* Sources */ = {
142+
isa = PBXSourcesBuildPhase;
143+
buildActionMask = 2147483647;
144+
files = (
145+
7878067925C5B6AC00ED7460 /* ViewController.swift in Sources */,
146+
7878067525C5B6AC00ED7460 /* AppDelegate.swift in Sources */,
147+
7878068A25C5B6BA00ED7460 /* SwiftUIView.swift in Sources */,
148+
7878067725C5B6AC00ED7460 /* SceneDelegate.swift in Sources */,
149+
);
150+
runOnlyForDeploymentPostprocessing = 0;
151+
};
152+
/* End PBXSourcesBuildPhase section */
153+
154+
/* Begin PBXVariantGroup section */
155+
7878067A25C5B6AC00ED7460 /* Main.storyboard */ = {
156+
isa = PBXVariantGroup;
157+
children = (
158+
7878067B25C5B6AC00ED7460 /* Base */,
159+
);
160+
name = Main.storyboard;
161+
sourceTree = "<group>";
162+
};
163+
7878067F25C5B6AE00ED7460 /* LaunchScreen.storyboard */ = {
164+
isa = PBXVariantGroup;
165+
children = (
166+
7878068025C5B6AE00ED7460 /* Base */,
167+
);
168+
name = LaunchScreen.storyboard;
169+
sourceTree = "<group>";
170+
};
171+
/* End PBXVariantGroup section */
172+
173+
/* Begin XCBuildConfiguration section */
174+
7878068325C5B6AE00ED7460 /* Debug */ = {
175+
isa = XCBuildConfiguration;
176+
buildSettings = {
177+
ALWAYS_SEARCH_USER_PATHS = NO;
178+
CLANG_ANALYZER_NONNULL = YES;
179+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
180+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
181+
CLANG_CXX_LIBRARY = "libc++";
182+
CLANG_ENABLE_MODULES = YES;
183+
CLANG_ENABLE_OBJC_ARC = YES;
184+
CLANG_ENABLE_OBJC_WEAK = YES;
185+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
186+
CLANG_WARN_BOOL_CONVERSION = YES;
187+
CLANG_WARN_COMMA = YES;
188+
CLANG_WARN_CONSTANT_CONVERSION = YES;
189+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
190+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
191+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
192+
CLANG_WARN_EMPTY_BODY = YES;
193+
CLANG_WARN_ENUM_CONVERSION = YES;
194+
CLANG_WARN_INFINITE_RECURSION = YES;
195+
CLANG_WARN_INT_CONVERSION = YES;
196+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
197+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
198+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
199+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
200+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
201+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
202+
CLANG_WARN_STRICT_PROTOTYPES = YES;
203+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
204+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
205+
CLANG_WARN_UNREACHABLE_CODE = YES;
206+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
207+
COPY_PHASE_STRIP = NO;
208+
DEBUG_INFORMATION_FORMAT = dwarf;
209+
ENABLE_STRICT_OBJC_MSGSEND = YES;
210+
ENABLE_TESTABILITY = YES;
211+
GCC_C_LANGUAGE_STANDARD = gnu11;
212+
GCC_DYNAMIC_NO_PIC = NO;
213+
GCC_NO_COMMON_BLOCKS = YES;
214+
GCC_OPTIMIZATION_LEVEL = 0;
215+
GCC_PREPROCESSOR_DEFINITIONS = (
216+
"DEBUG=1",
217+
"$(inherited)",
218+
);
219+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
220+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
221+
GCC_WARN_UNDECLARED_SELECTOR = YES;
222+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
223+
GCC_WARN_UNUSED_FUNCTION = YES;
224+
GCC_WARN_UNUSED_VARIABLE = YES;
225+
IPHONEOS_DEPLOYMENT_TARGET = 14.4;
226+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
227+
MTL_FAST_MATH = YES;
228+
ONLY_ACTIVE_ARCH = YES;
229+
SDKROOT = iphoneos;
230+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
231+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
232+
};
233+
name = Debug;
234+
};
235+
7878068425C5B6AE00ED7460 /* Release */ = {
236+
isa = XCBuildConfiguration;
237+
buildSettings = {
238+
ALWAYS_SEARCH_USER_PATHS = NO;
239+
CLANG_ANALYZER_NONNULL = YES;
240+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
241+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
242+
CLANG_CXX_LIBRARY = "libc++";
243+
CLANG_ENABLE_MODULES = YES;
244+
CLANG_ENABLE_OBJC_ARC = YES;
245+
CLANG_ENABLE_OBJC_WEAK = YES;
246+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
247+
CLANG_WARN_BOOL_CONVERSION = YES;
248+
CLANG_WARN_COMMA = YES;
249+
CLANG_WARN_CONSTANT_CONVERSION = YES;
250+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
251+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
252+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
253+
CLANG_WARN_EMPTY_BODY = YES;
254+
CLANG_WARN_ENUM_CONVERSION = YES;
255+
CLANG_WARN_INFINITE_RECURSION = YES;
256+
CLANG_WARN_INT_CONVERSION = YES;
257+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
258+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
259+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
260+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
261+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
262+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
263+
CLANG_WARN_STRICT_PROTOTYPES = YES;
264+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
265+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
266+
CLANG_WARN_UNREACHABLE_CODE = YES;
267+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
268+
COPY_PHASE_STRIP = NO;
269+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
270+
ENABLE_NS_ASSERTIONS = NO;
271+
ENABLE_STRICT_OBJC_MSGSEND = YES;
272+
GCC_C_LANGUAGE_STANDARD = gnu11;
273+
GCC_NO_COMMON_BLOCKS = YES;
274+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
275+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
276+
GCC_WARN_UNDECLARED_SELECTOR = YES;
277+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
278+
GCC_WARN_UNUSED_FUNCTION = YES;
279+
GCC_WARN_UNUSED_VARIABLE = YES;
280+
IPHONEOS_DEPLOYMENT_TARGET = 14.4;
281+
MTL_ENABLE_DEBUG_INFO = NO;
282+
MTL_FAST_MATH = YES;
283+
SDKROOT = iphoneos;
284+
SWIFT_COMPILATION_MODE = wholemodule;
285+
SWIFT_OPTIMIZATION_LEVEL = "-O";
286+
VALIDATE_PRODUCT = YES;
287+
};
288+
name = Release;
289+
};
290+
7878068625C5B6AE00ED7460 /* Debug */ = {
291+
isa = XCBuildConfiguration;
292+
buildSettings = {
293+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
294+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
295+
CODE_SIGN_ENTITLEMENTS = SwiftUIKeyboard/SwiftUIKeyboard.entitlements;
296+
CODE_SIGN_STYLE = Automatic;
297+
DEVELOPMENT_TEAM = 4YCRL5LW7Q;
298+
INFOPLIST_FILE = SwiftUIKeyboard/Info.plist;
299+
LD_RUNPATH_SEARCH_PATHS = (
300+
"$(inherited)",
301+
"@executable_path/Frameworks",
302+
);
303+
PRODUCT_BUNDLE_IDENTIFIER = com.pspdfkit.SwiftUIKeyboard;
304+
PRODUCT_NAME = "$(TARGET_NAME)";
305+
SUPPORTS_MACCATALYST = YES;
306+
SWIFT_VERSION = 5.0;
307+
TARGETED_DEVICE_FAMILY = "1,2";
308+
};
309+
name = Debug;
310+
};
311+
7878068725C5B6AE00ED7460 /* Release */ = {
312+
isa = XCBuildConfiguration;
313+
buildSettings = {
314+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
315+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
316+
CODE_SIGN_ENTITLEMENTS = SwiftUIKeyboard/SwiftUIKeyboard.entitlements;
317+
CODE_SIGN_STYLE = Automatic;
318+
DEVELOPMENT_TEAM = 4YCRL5LW7Q;
319+
INFOPLIST_FILE = SwiftUIKeyboard/Info.plist;
320+
LD_RUNPATH_SEARCH_PATHS = (
321+
"$(inherited)",
322+
"@executable_path/Frameworks",
323+
);
324+
PRODUCT_BUNDLE_IDENTIFIER = com.pspdfkit.SwiftUIKeyboard;
325+
PRODUCT_NAME = "$(TARGET_NAME)";
326+
SUPPORTS_MACCATALYST = YES;
327+
SWIFT_VERSION = 5.0;
328+
TARGETED_DEVICE_FAMILY = "1,2";
329+
};
330+
name = Release;
331+
};
332+
/* End XCBuildConfiguration section */
333+
334+
/* Begin XCConfigurationList section */
335+
7878066C25C5B6AC00ED7460 /* Build configuration list for PBXProject "SwiftUIKeyboard" */ = {
336+
isa = XCConfigurationList;
337+
buildConfigurations = (
338+
7878068325C5B6AE00ED7460 /* Debug */,
339+
7878068425C5B6AE00ED7460 /* Release */,
340+
);
341+
defaultConfigurationIsVisible = 0;
342+
defaultConfigurationName = Release;
343+
};
344+
7878068525C5B6AE00ED7460 /* Build configuration list for PBXNativeTarget "SwiftUIKeyboard" */ = {
345+
isa = XCConfigurationList;
346+
buildConfigurations = (
347+
7878068625C5B6AE00ED7460 /* Debug */,
348+
7878068725C5B6AE00ED7460 /* Release */,
349+
);
350+
defaultConfigurationIsVisible = 0;
351+
defaultConfigurationName = Release;
352+
};
353+
/* End XCConfigurationList section */
354+
};
355+
rootObject = 7878066925C5B6AC00ED7460 /* Project object */;
356+
}

FB8984997 - SwiftUI keyboardShortcut does not work when displayed via UIHostingController/Demo/SwiftUIKeyboard.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.
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)