AckeeCZ / ACKategories

Swift tools, cocoa subclasses and extensions.
MIT License
56 stars 13 forks source link

Deprecate `view.safeArea` on iOS 11+ #62

Closed olejnjak closed 4 years ago

olejnjak commented 4 years ago

Right now our view.safeArea property works on all systems, when using deployment target iOS 11+, it is not necessary and we should probably prefer the native safeAreaLayoutGuide.

So adding @available(iOS, deprecated: 11, renamed: "safeAreaLayoutGuide") on UIView and @available(iOS, deprecated: 13, renamed: "view.safeAreaLayoutGuide") on UIViewController should be added.

https://github.com/AckeeCZ/ACKategories/blob/ae9c2eeefe28b9ac809e60bb63de05a9ed0b725e/ACKategories/UIView%2BSafeAreaCompat.swift#L22