My code:
struct HomeMapView: View {
var body: some View {
VStack {
HomeHeader()
Spacer()
HomeFooter()
}
}
struct HomeHeader: View {
var body: some View {
Text("Header")
}
}
struct HomeFooter: View {
var body: some View {
Text("Footer")
}
}
I am new to swift, so excuse the simplicity. Trying to get a grasp on project structure and theory. My question: Would it be better to separate the HomeHeader and HomeFooter view into separate respective files, or keep the them in the file of the view that uses them?
If any additional clarification is needed, leave a comment.