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.
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 nativesafeAreaLayoutGuide
.So adding
@available(iOS, deprecated: 11, renamed: "safeAreaLayoutGuide")
onUIView
and@available(iOS, deprecated: 13, renamed: "view.safeAreaLayoutGuide")
onUIViewController
should be added.https://github.com/AckeeCZ/ACKategories/blob/ae9c2eeefe28b9ac809e60bb63de05a9ed0b725e/ACKategories/UIView%2BSafeAreaCompat.swift#L22