Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. extension CGPath {
  2. func apply(action: @escaping (CGPathElement)->()) {
  3. var action = action
  4. apply(info: &action) {
  5. let action = $0!.bindMemory(to: ((CGPathElement)->()).self, capacity: 1).pointee
  6. action($1.pointee)
  7. }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement