Post

Replies

Boosts

Views

Activity

Debug pass.json
How do I get errors from the simulator when something is wrong with the pkpass file? I have a 'good' version of my pass.json that drags into the simulator without issues. I have a different version that does nothing, so clearly something is wrong with the JSON, but I can't find what.In the simulator I've done Debug -> Open System Log but when I drag in the bad pkpass file, nothing is displayed.
2
0
2.7k
May ’21
performNotificationDefaultAction with SwiftUI
In my watchOS extension, I'm using the WKUserNotificationHostingController. If I override isInteractive and return true, how do I allow for opening the app? Essentially I want to know how to make the app open when tapping on specific elements of the custom View which is displayed. In previous versions I'd just call the performNotificationDefaultAction method on the WKUserNotificationInterfaceController.
0
0
812
Mar ’21
WKSnapshotRefreshBackgroundTask with SwiftUI
When my SwiftUI based watch app responds to an WKSnapshotRefreshBackgroundTask, how do I change the navigation stack? Before using SwiftUI we'd just do this: if let root = WKExtension().shared.rootInterfaceController { 		root.pushController(withName: "Controller1", context: nil) 		root.pushController(withName: "Controller2", context: nil) } And now I'd have the screen I wanted. Not sure how to accomplish that same thing with SwiftUI
0
0
614
Dec ’20