|
My app has a central list of choices, each of which takes the user to a different screen; the destinations have almost nothing in common. I've coded the main screen like this:
That is, a series of titles with a short description underneath. It looks more or less as I want it (I can smarten up the appearance later, and the headings and descriptions may be kept in a file and loaded at runtime). The sensible thing would seem to be to put some kind of reference to the destination view in the Tab structure, so the xxxx in the NavigationLink would be replaced with tab.destination. How do I do that? What is the "type" of a View? Or am I on completely the wrong track? Any suggestions gratefully received. Jeremy |
|
Hi Jeremy, Question is the Views you are going to different or is it the same custom view with different information on it? However have got it work but it probably not the best way to do it.
|
|
Nigel, they're completely different views which have either a little or nothing in common. Since I posted, I found a solution which is very similar to yours - but I think yours is better. Thanks. Jeremy |
|
Hi Jeremy Have found another way but not sure if very good but works
|
|
Since
|
|
Hi Would it not be an idea to put the My thinking that you can have a file with all data, switch and cases in one place so if you need to add you could see it and leave the Thought? Nigel |
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.