i get the expected expression error every time i restart Xcode i have tried numerous times to fix it here is the code
import SwiftUI
struct MainView: View {
var body: some View {
Color(.secondarySystemBackground)
HStack{
}
NavigationView{
Text("")
.navigationTitle("Home")
}
navigationBarItems(trailing:
Button(action: {
print("Hello")
}) {
Image(systemName: "square.and.pencil")
.resizable()
.frame(width: 50, height: 50)
) <- Error Here
}
}
}
struct MainView_Previews: PreviewProvider {
static var previews: some View {
MainView()
}
}
import SwiftUI
struct MainView: View {
var body: some View {
Color(.secondarySystemBackground)
HStack{
}
NavigationView{
Text("")
.navigationTitle("Home")
}
navigationBarItems(trailing:
Button(action: {
print("Hello")
}) {
Image(systemName: "square.and.pencil")
.resizable()
.frame(width: 50, height: 50)
) <- Error Here
}
}
}
struct MainView_Previews: PreviewProvider {
static var previews: some View {
MainView()
}
}