How to get coordinates/CGPoints of Shape in SwiftUI?

后端 未结 0 1219
野的像风
野的像风 2021-02-05 15:50

I have a Shape:

struct MyShape: Shape {
    func path(in rect: CGRect) -> Path {
        Path { path in
            path.move(to: CGPoint(x: 100, y: 100))
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题