UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Project 16 - HotProspects (from GitHub): QR Code button doesn't work a 2nd time unless switch tabs; console errors

Forums > 100 Days of SwiftUI

I had an issue with my HotProspects code after fininshing the project (HotProspects Wrap-up page).

So I downloaded the HotProspects code from GitHub (here) and still have the same issues. They are:

  1. The QR Code toolbar button works fine the first time, but tapping it a second time doesn't do anything. I have to switch tabs and then I can tap it again and it'll show the sheet.
  2. I get the following console errors. Some only appear when I tap Use a custom image and point it to a saved QR Code from the Me page (versus tapping the text to add a sample contact).
2023-03-06 17:55:09.394351-0700 HotProspects[51819:1687682] Metal API Validation Enabled
2023-03-06 17:55:09.617813-0700 HotProspects[51819:1687682] The filter 'CIPortraitEffectSpillCorrection' is not implemented in the bundle at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreImage/PortraitFilters.cifilter.
2023-03-06 17:55:56.884036-0700 HotProspects[51819:1687682] [TraitCollection] Class CKBrowserSwitcherViewController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.
2023-03-06 17:55:57.090736-0700 HotProspects[51819:1689443] [AXRuntimeCommon] Unknown client: HotProspects

Oh, and there was also a [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") error, but I fixed that by adding a Scene Configuration property to the target Application Scene Manifest in the build target Info tab.


Hacking with Swift is sponsored by RevenueCat

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.