From d8a973efa08ac0b7aba173dda76b80b849d9b45a Mon Sep 17 00:00:00 2001 From: Adrian Schoenig Date: Tue, 31 Aug 2021 12:21:43 +1000 Subject: [PATCH] Fix running example on device --- Example/ExampleCardViewController.swift | 6 ++++++ TGCardViewController.xcodeproj/project.pbxproj | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Example/ExampleCardViewController.swift b/Example/ExampleCardViewController.swift index 4f3288b..b8bc33e 100644 --- a/Example/ExampleCardViewController.swift +++ b/Example/ExampleCardViewController.swift @@ -21,6 +21,12 @@ class ExampleCardViewController: TGCardViewController { override func viewDidLoad() { rootCard = ExampleRootCard() + + if #available(iOS 13.0, *) { + // This is useful for debugging positioning of things that might sneak + // under the card, e.g., the map's attribution label + rootCard?.style.backgroundColor = .systemBackground.withAlphaComponent(0.4) + } navigationButtonsAreSpringLoaded = true diff --git a/TGCardViewController.xcodeproj/project.pbxproj b/TGCardViewController.xcodeproj/project.pbxproj index e666269..1814191 100644 --- a/TGCardViewController.xcodeproj/project.pbxproj +++ b/TGCardViewController.xcodeproj/project.pbxproj @@ -785,7 +785,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = Example.entitlements; + CODE_SIGN_ENTITLEMENTS = "Example/Supporting Files/Example.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES; DEVELOPMENT_TEAM = JFT62W5LA3; @@ -806,7 +806,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = Example.entitlements; + CODE_SIGN_ENTITLEMENTS = "Example/Supporting Files/Example.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES; DEVELOPMENT_TEAM = JFT62W5LA3;