Number:rdar://25737301 Date Originated:15-Apr-2016 01:17 AM
Status:Open Resolved:
Product:Developer Tools Product Version:7.3
Classification:Enhancement Reproducible:Always
We use __attribute__((noescape)) on blocks in Objective-C to declare them as not escaping in Swift.
Would be great if there is an official NS_NOESCAPE macro.
Even better if the ObjC compiler would know about it and warn accordingly.

Here’s what we use in the PSPDFKit SDK:

// Equivalent to Swift's @noescape
#define PSPDF_NOESCAPE __attribute__((noescape))



This was added in iOS 10b1. No response to my radar, but I just closed it myself :)

By steipete at June 20, 2016, 7 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!