Xcode 10 Swift build error: "Converting non-escaping value to 'T' may allow it to escape" Xcode 10 Swift build error: "Converting non-escaping value to 'T' may allow it to escape" swift swift

Xcode 10 Swift build error: "Converting non-escaping value to 'T' may allow it to escape"


Use

private func myPathApply(_ path: CGPath!,     block: @escaping @convention(block) (UnsafePointer<CGPathElement>) -> Void) {}

@noescape is now by default