It's terrible the problem and the worst my xcode doesn't generate the report ******* bug
Post
Replies
Boosts
Views
Activity
I hope apple fix that bug
import SwiftUI
struct ContentView: View {
var body: some View {
Path(){ path in
path.move(to: CGPoint(x:30, y:30))
path.addLine(to: CGPoint(x:230, y:30 ))
path.addLine(to: CGPoint(x:230, y:150 ))
path.addLine(to: CGPoint(x:30, y:150))
}
.fill(Color.blue)
}
}
error
Cannot call value of non-function type 'CGPoint'
#Preview {
ContentView()
}
import SwiftUI
struct ContentView: View {
var body: some View {
Path(){ path in
path.move(to: CGPoint(x:30, y:30))
path.addLine(to: CGPoint(x:230, y:30 ))
path.addLine(to: CGPoint(x:230, y:150 ))
path.addLine(to: CGPoint(x:30, y:150))
}
.fill(Color.blue)
}
}
#Preview {
ContentView()
}
import SwiftUI
struct ContentView: View {
var body: some View {
Path(){ path in
path.move(to: <#T##CGPoint#>(x:30, y:30))
path.addLine(to: <#T##CGPoint#>(x:230, y:30 ))
path.addLine(to: <#T##CGPoint#>(x:230, y:150 ))
path.addLine(to: <#T##CGPoint#>(x:30, y:150))
}
.fill(Color.blue)
}
}
#Preview {
ContentView()
}
Cannot call value of non-function type 'CGPoint'