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'
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’24
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: 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() }
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’24
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'
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’24
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: 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() }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’24
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: 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() }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Xcode 15.0 - Failed to Build on Canvas Preview SwiftUI
I hope apple fix that bug
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Xcode 15.0 - Failed to Build on Canvas Preview SwiftUI
It's terrible the problem and the worst my xcode doesn't generate the report fucking bug
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24