Post

Replies

Boosts

Views

Activity

Reply to Unexpectedly found nil while unwrapping an Optional value
don't force unwrap let letterString = sender.title(for: .normal)! @IBAction func letterButtonPressed(_ sender: UIButton) {      // unwrap the optional response from sender.title(for:) else return from method  guard let letterString = sender.title(for: .normal) else { return } sender.isEnabled = false   let letter = Character(letterString.lowercased())      currentGame.playerGuessed(letter: letter)      updateGameState()   }    func updateGameState() {     if currentGame.incorrectMovesRemaining == 0 {       totalLosses += 1     } else if currentGame.word == currentGame.formattedWord {       totalWins += 1     } else {       updateUI() } }
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’22
Reply to "Failed to produce diagnostic for expression; please submit a bug report and include the project"
Move the code below out of the toolbar list. This is not a toolbar type hence the error.  RoundedRectangle(cornerRadius: 7)           .fill(Color(.systemGray4))           .frame(width: 200, height: 299, alignment: .center)         VStack {           Text("New Folder")           Text("Enter a name for this folder")           TextField("Name", text: $newFolderName)         }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’22
Reply to "This bundle is invalid. The bundle at path [path] has an invalid CFBundleIdentifier..."
Shorten the string to com.gdnative.webrtc-lib clean the build before next build
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Are there application classes where UIKit is a better choice than SwiftUI?
Views by design refresh no matter the framework. These are details we really shouldn't think or worry about because UIKit or AppKit is powering SwiftUI when compiled.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to What is the difference between CKShare.ParticipantRole.privateUser and CKShare.ParticipantRole.publicUser
Data visibility.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Image classification label not showing up
Your serial numbers will also have to be unique if it fails on another bill of the same denomination.
Replies
Boosts
Views
Activity
Apr ’22
Reply to Apple Watch reloadRootPageControllers not initializing all pages
Time to move to SwitfUI and just a use TabBar setup with a pagination or I think a carousel style.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Unexpectedly found nil while unwrapping an Optional value
don't force unwrap let letterString = sender.title(for: .normal)! @IBAction func letterButtonPressed(_ sender: UIButton) {      // unwrap the optional response from sender.title(for:) else return from method  guard let letterString = sender.title(for: .normal) else { return } sender.isEnabled = false   let letter = Character(letterString.lowercased())      currentGame.playerGuessed(letter: letter)      updateGameState()   }    func updateGameState() {     if currentGame.incorrectMovesRemaining == 0 {       totalLosses += 1     } else if currentGame.word == currentGame.formattedWord {       totalWins += 1     } else {       updateUI() } }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Python
Python is preinstalled as version python3. This was mentioned a while back that version 2 was upgrade to 3.
Topic: Business & Education SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to How can I access collections and documents in Firestore?
This is not an Apple product & I recommend you ask any Google related API questions over at google here in one of their discussion options: https://firebase.google.com/community
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to "Provisioning profile "iOS Team Provisioning Profile: ***" doesn't include the com.apple.developer.contacts.notes entitlement.
Maybe you have to request access to this entitlement from Apple given sensitivity of the contents. https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_contacts_notes
Replies
Boosts
Views
Activity
Apr ’22
Reply to Unable to use DistributedNotificationCenter
Just make sure the playgrounds settings platform is configured for macOS and not iOS.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to "Failed to produce diagnostic for expression; please submit a bug report and include the project"
Move the code below out of the toolbar list. This is not a toolbar type hence the error.  RoundedRectangle(cornerRadius: 7)           .fill(Color(.systemGray4))           .frame(width: 200, height: 299, alignment: .center)         VStack {           Text("New Folder")           Text("Enter a name for this folder")           TextField("Name", text: $newFolderName)         }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Recommended device(s) for iBeacon calibration
Anything iOS 7 and later the dated documentation recommends.
Replies
Boosts
Views
Activity
May ’22
Reply to In coredata and swiftUI, how can I get the objects that are related to an object that is related to the object I have
Read and study everything here: https://developer.apple.com/documentation/coredata and here https://developer.apple.com/documentation/swiftui/loading_and_displaying_a_large_data_feed
Replies
Boosts
Views
Activity
May ’22
Reply to Unity Vuforia App Carsh on lunch on ipad ios 15
You will be better served on the unity support forums by providing unity a copy of your project to figure out the crash.
Replies
Boosts
Views
Activity
May ’22