Post not yet marked as solved
Am referring Apple's @State documentation: https://developer.apple.com/documentation/swiftui/state
How does an outside class or struct observe a change in @State within a SwiftUI View?
For example, using Apple's Button example in the link above, how would a change in @State isPlaying actually do something like start or stop a media player? Do I attach a callback, use a KVO, or use a special observer?
Post not yet marked as solved
Would like to play with this example project shown on session wwdc21-10187
Post not yet marked as solved
New error in XCode 13 Beta 4: "Generic parameter 'Success' could not be inferred"
No error in earlier XCode 13 Beta.
What's the fix? THe above line is from Apple example code: "DrawTogether"
Post not yet marked as solved
On MBP with XCode on Desktop 1, swiping to Desktop 2 shows the same XCode IDE overlayed on top. I want to XCode stay only on Desktop 1 and not appear on Desktop 2. How to fix?
Post not yet marked as solved
How to implement local speech recognition exclusively on WatchOS? I think there was mention of local ASR, this year?
Use case is for a visually impaired person requesting information by raising their wrist and speaking a small number of words for a variety of intents. Because they would be walking with a white cane, the UI must be hands free. This works for sighted folks, as well. The number of intents are too diverse for creating individual Siri shortcuts.
Ideally, the Watch App would call something akin to SFSpeechAudioBufferRecognitionRequest. Is this available? Where can I find the documentation?
Post not yet marked as solved
I'm trying to setup a new gmail account in mail.app1) Google requires completing authentication in Safari. After authentication, set up will continue in Internet Accounts.2) Authentication Failed. After authentication, set up will continue in Internet Accounts.
Post not yet marked as solved
Could a user onboard an Apple Watch with WatchOS6 without an iPhone? This would be akin to how iPod supported Windows, which resulted in an order of magnitude more growth for the iPod. We're looking at an social audio app in Indonesia and US. In Indonesia, Andriod adoption is 93%, to iPhone 5%. Ostensibly, we could get the app working exclusively on the Apple Watch. But, that implies onboarding with Android, Windows, Browser, or Mac.
Post not yet marked as solved
Prior to WatchOS 5 beta 7,8, I was able to launch my Watch App via Siri voice shortcut. Now the watch always responds with "Continue on iPhone". Have used a variety of response codes, including .continueInApp (shown below)class MyIntentHandler: NSObject, MyIntentHandling { func handle(intent: MyIntent, completion: @escaping (MyIntentResponse) -> Swift.Void) { completion(MyIntentResponse(code: .continueInApp, userActivity: nil)) }}The shortcut works fine when invoking from iPhone. Also the SoupChef example works fine on watch for presenting an IntentUI. This is difficult to trackdown as the console is not connecting to Watch series 0,2,3Is anyone able to launch their app on the Watch from a shortcut, lately?Thanks!
Post not yet marked as solved
Siri Shortcuts stopped on working on WatchOS 5 beta 8WatchOS 5 beta 7 (+ iOS 12 beta 8) : was workingWatchOS 5 beta 8 (+ iOS 12 beta 9) : NOT workingShortcut IS WORKING on iPhone ( OS 12 beta 9)Anyone else experiencing same (or different)?Thanks!