path api1 SwiftUI Tutorial 5- Drawing paths and shapes 1. Create drawing data for a badge viewimport CoreGraphicsstruct HexagonParameters { struct Segment { let line: CGPoint let curve: CGPoint let control: CGPoint } static let adjustment: CGFloat = 0.085 static let segments = [ Segment( line: CGPoint(x: 0.60, y: 0.05), curve: CGPoint(x: 0.40, y: 0.05), control: CGPoint(x:.. 2024. 7. 7. 이전 1 다음