SwiftUI: Custom shape material fill does not work – Ios swift
I made a custom shape in SwiftUI with the following code: struct CustomShape: Shape { func path(in rect: CGRect) -> Path { var path = Path() path.move(to: CGPoint(x: rect.minX, y: rect.maxY)) path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY)) path.addLine(to: CGPoint(x: rect.maxX, y:…