Post

Replies

Boosts

Views

Activity

Reply to WatchOS Storyboards Not Pulling Data From Context
Ok I think I figured out what to do. I'll document it for anyone who is interested. On controller1 you pass the data with var relet = ReletClass (my Class) override func contextForSegue(withIdentifier segueIdentifier: String) -> Any?{ return self.relet <--- (or whatever your class is) } Then on your second controller you do this var relet = ReletClass () override func awake(withContext context: Any?){ if let myClass = context as? ReletClass{ relet = myClass (this loads the data passed to your second controller into your var) } } Now you'll be able to use the data however you like. Here are some good references: Stackoverflow - https://stackoverflow.com/questions/50626181/passing-data-between-interface-controller-in-watchkit/ Apple Documentation - https://developer.apple.com/documentation/watchkit/storyboard_elements/building_watchos_app_interfaces_using_the_storyboard/navigating_between_scenes/
Jan ’21