Sunday, November 8, 2026
HomeiOS Developmentios - SwiftUI: How to return to the earlier occasion in a...

ios – SwiftUI: How to return to the earlier occasion in a navigationlink in an inventory

[ad_1]

I want to code a a number of timer app for me and my household. And i’d now like to indicate these a number of timers in an inventory. From the checklist the person can faucet on a timer (checklist row) and than go to the chosen timer. Like on this app:
https://youtu.be/KAIOYlXi2KE
Thus far I’ve already managed to generate the transition from my checklist to my timer view with a navigation hyperlink in my checklist:


                NavigationLink {

                    TimerView(timerObject: timer)

                } label: {

                    Textual content(timer.title)

                }

            }

But when I now return to my checklist, after which attempt to go to the identical timer which I began earlier, a totally new occasion of my timer view is created regardless that I’m nonetheless getting the print instructions (each second) in my console of my earlier began timer. So how can I code that every checklist row has solely a single occasion of a timer after which at all times goes again to simply that one timer? I’d be actually glad about assist. Thanks!

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments