Your link's destination is:
NavigationLink(destination: CreateAccountView(), // ... snip ....
Swift wants to assemble the CreateAccountView
so it can display it on screen. It seems you are NOT providing the data it requires to assemble the destination view.
Share your Journey
You just joined HackingWIthSwift today. Please share with us which day you are on in the 100 Days of SwiftUI course. This will help us know if you missed important concepts in previous lessons.
Otherwise, you may be asking for help when the answer exists in @twoStraw's excellent videos.
For example this code is a mess, and distracts from the problem you're trying to solve:
TextField("Username", text: $username)
.disableAutocorrection(true)
.autocapitalization(.none)
.padding()
.background(TextBoxColor)
.foregroundColor(.black)
.cornerRadius(10.0)
.border(Color.black, width: 1)
.padding(.horizontal, 30.0)
.padding(.vertical, 5.0)
.cornerRadius(10.0)
@twoStraws has an excellent lesson on how to fix this. Maybe this is a nice review?
See -> Creating Custom Modifiers