Post not yet marked as solved
So, the Apple button example for @State has no real utility as a button.
To be honest, I find a View's ability to interleave (procedural) state with (declarative) layout and gestures to be rather complex.
Currently, am using a MVVM pattern; a combination of Model, ViewModel (or Vm), and View. The Vm is passed as an @ObservedObject and receives the View's .onAppear and .onChange messages. This eliminates the View's need for @State, @Binding, and @StateObject. So, the Vm focuses on the state machine, while the View focuses on layout and dispatching gestures.
A Vm class can also persist and synchronize across devices, such as iWatch-iPhone-iPad-AppleTv-SharePlay, etc. But, maybe there is a better way of accomplishing the same goals with a self modifying struct. I dunno; still trying to wrap my head around the best approach.
Thanks.
Post not yet marked as solved
var tasks = Set<Task<Void, Never>>()
Post not yet marked as solved
"why swiping to Desktop 2 ?"
Not enough screen real estate. I work off a laptop and optionally sidecar an iPad. Desktop 1 for code, Desktop 2 for Browser, Email, etc.
Post not yet marked as solved
Similar results with new Gmail account. Can't verify via Safari (won't launch). Generating App password via Google App does not work either.
Post not yet marked as solved
Now it is recognizing the shortcut command. Maybe due to a server push on Apple's side? Dunno.But now all Siri voice shortcuts are reverting to "Continue on iPhone". Starting a new thread for that one.Reverted back to "I do not recognize that command." On both production and bare bones app.
Post not yet marked as solved
Same problem here. It used to work in previous Betas. Fails for both iOS 12 Beta 8 and WatchOS 5 Beta 7. Please file a bug. Will do the same.EDITI got it working. Three things to check1) Make sure app targets have embeded extensionName.appex2) add .continueInApp or whatever code you likeclass IntentHandler: INExtension, YourIntentHandling { func confirm(intent: YourIntent, completion: (YourIntentResponse) -> Void) { print("⊿ \(#function) \(intent)") completion(YourIntentResponse(code: .continueInApp, userActivity: nil )) }func handle(intent: YourIntent, completion: @escaping (YourIntentResponse) -> Swift.Void) { print("⊿ \(#function) \(intent)") completion(YourIntentResponse(code: .continueInApp, userActivity: nil)) }}3) compare side-by-side project details with with newest SoupChef app targets (there's a newer version recently posted)
Post not yet marked as solved
Beta 7 is currently not available; Beta 6 says "currently up to date". So, hopefully a quick turnaround for beta 8. Thanks for reporting this!
Post not yet marked as solved
I consider this broken. On a related thread, a reply mentioned a link to ARKit code. But, searching https://developer.apple.com/search/?q=arkit&type=Sample%20Code yields no results. Ideally, Apple would simply mark archived code as deprecated and keep the existing site. Having to slog through reference work to find a hidden link is counterproductive. I've been developing on iOS since jailbreaking 1.1.1 -- it is now becoming as convoluted as developing on Symbian.