Post

Replies

Boosts

Views

Activity

Reply to @Binding in App structure not updating view
This pattern is not recommended with didSet subscribe to their changes instead. The patterns in the code don't follow the SwiftUI paradigm. @State var whatsNew = Array<String>() { didSet { print("what's new array set, newRefreshIndicator = \(newRefreshIndicator)") newRefreshIndicator = false if !newPopup { newPopup = true } } } @Binding var setMock: [Restaurants] { didSet { print("dataSet") // yes.restList.removeAll() joining = false print("searchRest = \(search)") print("mock = \(restMock)") search = true creating = false joining = false } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22
Reply to Is it possible that the device token for Push notification will change while the app is running?
Please mention a specific problem you're experiencing instead of being as clear as mud. As the documentation outlines it will call the method mentioned if there is a change while the app is running or the next time the app launches. It is your responsibility to take the token and store it somewhere for use by your APNS backend sending server, or script any time a notification has to be delivered to the device.
Feb ’22
Reply to SwiftUI MacOS Return/Enter Key in TextField
use the submit modifier on the the ok button TextField("Name: ", text: $name) TextField("Description:", text: $description) Button("Cancel") { self.isVisible.Toggle() } .keyboardShortcut(.cancelAction) Button("Ok") { doSomeThing() } .keyboardShortcut(.defaultAction) .onSubmit { doSomething() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22
Reply to Memory allocation and deallocation issues in c++ code
set lines 877 to null and see if the any of the messages go away. If you're releasing objects you shouldn't be making new assignments after freeing ...
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to Like macOS and iOS is there something similar for watchOS under SwiftUI
I found the answer.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to BackgroundTaskManager Crash from submitting TaskUsing the BGTaskScheduler we are seeing a large amount of crashes from stack traces showing on BGTaskScheduler.shared.submit(). I have verified the following - BG Task is registered only once - Task
Have you tried try? BGTaskScheduler.shared.submit(backgroundAppRefreshRequest)
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to WatchOS App only runs via Xcode
I found the issue.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to @Binding in App structure not updating view
This pattern is not recommended with didSet subscribe to their changes instead. The patterns in the code don't follow the SwiftUI paradigm. @State var whatsNew = Array<String>() { didSet { print("what's new array set, newRefreshIndicator = \(newRefreshIndicator)") newRefreshIndicator = false if !newPopup { newPopup = true } } } @Binding var setMock: [Restaurants] { didSet { print("dataSet") // yes.restList.removeAll() joining = false print("searchRest = \(search)") print("mock = \(restMock)") search = true creating = false joining = false } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to LandmarkRow.swift Cannot Preview in This File
See here: https://developer.apple.com/documentation/xcode-release-notes/xcode-13_3-release-notes Run this:  rm -rf "$TMPDIR/../C/clang/ModuleCache"
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to viewDidAppear() called before sceneDidBecomeActive() when app is run without Xcode?
You can't unless you get a job @apple to make the compiler changes.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to Is it possible that the device token for Push notification will change while the app is running?
Please mention a specific problem you're experiencing instead of being as clear as mud. As the documentation outlines it will call the method mentioned if there is a change while the app is running or the next time the app launches. It is your responsibility to take the token and store it somewhere for use by your APNS backend sending server, or script any time a notification has to be delivered to the device.
Replies
Boosts
Views
Activity
Feb ’22
Reply to SwiftUI MacOS Return/Enter Key in TextField
use the submit modifier on the the ok button TextField("Name: ", text: $name) TextField("Description:", text: $description) Button("Cancel") { self.isVisible.Toggle() } .keyboardShortcut(.cancelAction) Button("Ok") { doSomeThing() } .keyboardShortcut(.defaultAction) .onSubmit { doSomething() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to Data-binding not working Xamarin Forms
Wrong forum check Microsoft or learn Obj-c or swift.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to MTKView on macOS is printing CVDisplayLink strings on M1
Debug output for animations or view state changes
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to I did set a alarm for 6 on my sons phone
Please go here for all retail support questions: https://discussions.apple.com/welcome
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to My volume was loud on my sons phone
Please go here for all retail support questions: https://discussions.apple.com/welcome
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to Your Apple ID was used to sign in to iCloud via a web browser email
Please go here for all retail support questions: https://discussions.apple.com/welcome
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to I received this email
Please go here for all retail support questions: https://discussions.apple.com/welcome
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Feb ’22