Skip to content

Commit

Permalink
Fix running example on device
Browse files Browse the repository at this point in the history
  • Loading branch information
nighthawk committed Aug 31, 2021
1 parent 803afd5 commit d8a973e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Example/ExampleCardViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions TGCardViewController.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit d8a973e

Please sign in to comment.