Post

Replies

Boosts

Views

Activity

Reply to Cannot call value of non-function type 'CGPoint'
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'
Apr ’24