This code is something similar to my current UI. I have alot of view in between of Spacer(). I notice that when i add alot of Spacer() i get this error //Trailing closure passed to parameter of type 'HorizontalAlignment' that does not accept a closure// why is that?
import SwiftUI
struct Phrases2: View {
var body: some View {
ZStack() {
Text("")
Text("")
VStack() {
Spacer()
Text("")
Spacer()
Text("")
Spacer()
Text("")
Spacer()
Text("")
Spacer()
Text("")
Spacer()
Text("")
Spacer()
Text("")
Spacer()
Text("")
Spacer()
Text("")
Spacer()
Text("")
Spacer()
}
}
}
}