Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extension CGPath {
- func apply(action: @escaping (CGPathElement)->()) {
- var action = action
- apply(info: &action) {
- let action = $0!.bindMemory(to: ((CGPathElement)->()).self, capacity: 1).pointee
- action($1.pointee)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement