Hello. I am stuck on this one problem, and I can't fix it. I'm very new to Swift, but I have used other languages. I searched all over the internet, and it does not work. I tried doing something similar to this:
Button("Press Me") {
view2()
}
It doesn't do anything. It's spelled correctly. If it helps, it also gives a warning of "Result of 'Username' initializer is unused" Does anyone know why this is happening?