swiftui draw line between 2 CGPoint without using to many addLine

前端 未结 0 868
终归单人心
终归单人心 2021-01-16 16:35

i\'am try in swiftUI to draw a line between to CGPoint(x:0, y:0), CGPoint(x:100, y:100)

struct Line : Shape {
    func path(in rect: CGRect) -> Path {
             


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