Cocoanetics / DTFoundation

Standard toolset classes and categories
BSD 2-Clause "Simplified" License
805 stars 237 forks source link

Make DTFoundation frameworks extension-safe #115

Closed Johennes closed 6 years ago

Johennes commented 6 years ago

This replaces the extension-unsafe call to [[UIApplication sharedApplication] statusBarOrientation] with a custom extension-safe extension on UIScreen. This in turn allows the dynamic frameworks to be marked as using extension-safe APIs only which makes it possible to use them e.g. in an iMessage app extension.

Based on https://stackoverflow.com/a/37329460

odrobnik commented 6 years ago

Looks good, @Johennes, thank you!