I’m trying to set up my app so that every time I want to update part of it I can simply input a few values rather than re-writing large parts of the app. The first problem that I’m running into is that I can’t define “View” as a variable property.
The screen shot above shows the code I’m working with. I’m able to set the variables date and image up because they are a String values, but I need to be able to change where “Details” button sends people each time, but I can’t do it because I don’t know how to set up a variable that allows me to input a different view every time. When I define the variable like
var view = View
I’m just given errors. Any help would be appreciated.
Also, while I’m here, I’m also having troublem implementing scrolling. I’m wondering if it’s possible to have navigation view inside of scroll view? Thanks for any and all help.