Skip to content

Commit fdcb54c

Browse files
committed
iOS 16 update
1 parent 4fa928b commit fdcb54c

37 files changed

+43
-355
lines changed

β€ŽPizzaShop.xcodeproj/project.pbxproj

+26-14
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
F00C46E928A8E67100070617 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F00C46E828A8E67100070617 /* Assets.xcassets */; };
1414
F00C46EB28A8E67100070617 /* PizzaShopWidget.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = F00C46E728A8E67100070617 /* PizzaShopWidget.intentdefinition */; };
1515
F00C46EC28A8E67100070617 /* PizzaShopWidget.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = F00C46E728A8E67100070617 /* PizzaShopWidget.intentdefinition */; };
16-
F00C46EF28A8E67100070617 /* PizzaShopWidgetExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = F00C46DE28A8E67000070617 /* PizzaShopWidgetExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
16+
F00C46EF28A8E67100070617 /* PizzaShopWidgetExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = F00C46DE28A8E67000070617 /* PizzaShopWidgetExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
1717
F0125A0F26D81CA300C5AA8C /* RegisterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0125A0E26D81CA300C5AA8C /* RegisterViewController.swift */; };
1818
F0125A1426D81CB900C5AA8C /* MenuViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0125A1326D81CB900C5AA8C /* MenuViewController.swift */; };
1919
F0125A1A26D81CCF00C5AA8C /* CartViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0125A1926D81CCF00C5AA8C /* CartViewController.swift */; };
@@ -98,15 +98,15 @@
9898
/* End PBXContainerItemProxy section */
9999

100100
/* Begin PBXCopyFilesBuildPhase section */
101-
F00C46F328A8E67100070617 /* Embed App Extensions */ = {
101+
F00C46F328A8E67100070617 /* Embed Foundation Extensions */ = {
102102
isa = PBXCopyFilesBuildPhase;
103103
buildActionMask = 2147483647;
104104
dstPath = "";
105105
dstSubfolderSpec = 13;
106106
files = (
107-
F00C46EF28A8E67100070617 /* PizzaShopWidgetExtension.appex in Embed App Extensions */,
107+
F00C46EF28A8E67100070617 /* PizzaShopWidgetExtension.appex in Embed Foundation Extensions */,
108108
);
109-
name = "Embed App Extensions";
109+
name = "Embed Foundation Extensions";
110110
runOnlyForDeploymentPostprocessing = 0;
111111
};
112112
/* End PBXCopyFilesBuildPhase section */
@@ -469,7 +469,7 @@
469469
F0349D6B26D78E4400C6B154 /* Sources */,
470470
F0349D6C26D78E4400C6B154 /* Frameworks */,
471471
F0349D6D26D78E4400C6B154 /* Resources */,
472-
F00C46F328A8E67100070617 /* Embed App Extensions */,
472+
F00C46F328A8E67100070617 /* Embed Foundation Extensions */,
473473
);
474474
buildRules = (
475475
);
@@ -524,7 +524,7 @@
524524
isa = PBXProject;
525525
attributes = {
526526
LastSwiftUpdateCheck = 1330;
527-
LastUpgradeCheck = 1240;
527+
LastUpgradeCheck = 1410;
528528
TargetAttributes = {
529529
F00C46DD28A8E67000070617 = {
530530
CreatedOnToolsVersion = 13.3;
@@ -753,6 +753,7 @@
753753
INFOPLIST_FILE = PizzaShopWidget/Info.plist;
754754
INFOPLIST_KEY_CFBundleDisplayName = PizzaShopWidget;
755755
INFOPLIST_KEY_NSHumanReadableCopyright = "";
756+
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
756757
LD_RUNPATH_SEARCH_PATHS = (
757758
"$(inherited)",
758759
"@executable_path/Frameworks",
@@ -781,6 +782,7 @@
781782
INFOPLIST_FILE = PizzaShopWidget/Info.plist;
782783
INFOPLIST_KEY_CFBundleDisplayName = PizzaShopWidget;
783784
INFOPLIST_KEY_NSHumanReadableCopyright = "";
785+
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
784786
LD_RUNPATH_SEARCH_PATHS = (
785787
"$(inherited)",
786788
"@executable_path/Frameworks",
@@ -847,7 +849,7 @@
847849
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
848850
GCC_WARN_UNUSED_FUNCTION = YES;
849851
GCC_WARN_UNUSED_VARIABLE = YES;
850-
IPHONEOS_DEPLOYMENT_TARGET = 15.4;
852+
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
851853
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
852854
MTL_FAST_MATH = YES;
853855
ONLY_ACTIVE_ARCH = YES;
@@ -902,7 +904,7 @@
902904
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
903905
GCC_WARN_UNUSED_FUNCTION = YES;
904906
GCC_WARN_UNUSED_VARIABLE = YES;
905-
IPHONEOS_DEPLOYMENT_TARGET = 15.4;
907+
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
906908
MTL_ENABLE_DEBUG_INFO = NO;
907909
MTL_FAST_MATH = YES;
908910
SDKROOT = iphoneos;
@@ -922,16 +924,21 @@
922924
CURRENT_PROJECT_VERSION = 4;
923925
DEVELOPMENT_TEAM = QMW26WR72K;
924926
INFOPLIST_FILE = "PizzaShop/Support Files/Info.plist";
925-
IPHONEOS_DEPLOYMENT_TARGET = 15.4;
927+
INFOPLIST_KEY_CFBundleDisplayName = PizzaShop;
928+
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.food-and-drink";
929+
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
926930
LD_RUNPATH_SEARCH_PATHS = (
927931
"$(inherited)",
928932
"@executable_path/Frameworks",
929933
);
930934
MARKETING_VERSION = 3.2.1;
931935
PRODUCT_BUNDLE_IDENTIFIER = co.armanabkar.PizzaShop;
932936
PRODUCT_NAME = "$(TARGET_NAME)";
937+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
938+
SUPPORTS_MACCATALYST = NO;
939+
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
933940
SWIFT_VERSION = 5.0;
934-
TARGETED_DEVICE_FAMILY = "1,2";
941+
TARGETED_DEVICE_FAMILY = 1;
935942
};
936943
name = Debug;
937944
};
@@ -945,16 +952,21 @@
945952
CURRENT_PROJECT_VERSION = 4;
946953
DEVELOPMENT_TEAM = QMW26WR72K;
947954
INFOPLIST_FILE = "PizzaShop/Support Files/Info.plist";
948-
IPHONEOS_DEPLOYMENT_TARGET = 15.4;
955+
INFOPLIST_KEY_CFBundleDisplayName = PizzaShop;
956+
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.food-and-drink";
957+
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
949958
LD_RUNPATH_SEARCH_PATHS = (
950959
"$(inherited)",
951960
"@executable_path/Frameworks",
952961
);
953962
MARKETING_VERSION = 3.2.1;
954963
PRODUCT_BUNDLE_IDENTIFIER = co.armanabkar.PizzaShop;
955964
PRODUCT_NAME = "$(TARGET_NAME)";
965+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
966+
SUPPORTS_MACCATALYST = NO;
967+
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
956968
SWIFT_VERSION = 5.0;
957-
TARGETED_DEVICE_FAMILY = "1,2";
969+
TARGETED_DEVICE_FAMILY = 1;
958970
};
959971
name = Release;
960972
};
@@ -966,7 +978,7 @@
966978
CODE_SIGN_STYLE = Automatic;
967979
DEVELOPMENT_TEAM = QMW26WR72K;
968980
INFOPLIST_FILE = PizzaShopTests/Info.plist;
969-
IPHONEOS_DEPLOYMENT_TARGET = 15.4;
981+
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
970982
LD_RUNPATH_SEARCH_PATHS = (
971983
"$(inherited)",
972984
"@executable_path/Frameworks",
@@ -988,7 +1000,7 @@
9881000
CODE_SIGN_STYLE = Automatic;
9891001
DEVELOPMENT_TEAM = QMW26WR72K;
9901002
INFOPLIST_FILE = PizzaShopTests/Info.plist;
991-
IPHONEOS_DEPLOYMENT_TARGET = 15.4;
1003+
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
9921004
LD_RUNPATH_SEARCH_PATHS = (
9931005
"$(inherited)",
9941006
"@executable_path/Frameworks",

β€ŽPizzaShop.xcodeproj/xcshareddata/xcschemes/PizzaShop.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1240"
3+
LastUpgradeVersion = "1410"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

β€ŽPizzaShop/Controllers/FoodDetailViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class FoodDetailViewController: UIViewController {
5858
self.foodNameLabel.text = foodName
5959
self.foodPriceLabel.text = "\(foodPrice)$"
6060
ImageLoader.sharedInstance.imageForUrl(urlString: foodImage) { [weak self] (image, url) in
61-
if let image = image {
61+
if let image {
6262
self?.foodImageView.image = image
6363
}
6464
}

β€ŽPizzaShop/Extensions/UIViewControllerExtension.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extension UIViewController {
2828
let constraints = [
2929
hostingController.view.topAnchor.constraint(equalTo: view.topAnchor),
3030
hostingController.view.leftAnchor.constraint(equalTo: view.leftAnchor),
31-
view.bottomAnchor.constraint(equalTo: hostingController.view.bottomAnchor),
31+
view.bottomAnchor.constraint(equalTo: hostingController.view.bottomAnchor, constant: self.tabBarController?.tabBar.frame.height ?? 0),
3232
view.rightAnchor.constraint(equalTo: hostingController.view.rightAnchor)
3333
]
3434

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
Β (0)