This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use of safeAreaInsets for old versions of iOS
Summary: This would cause a crash on iOS 9.3 because this method does not exist on UIView on that platform. By wrapping it in an availability check, we provide some safety. Changelog: [iOS] [Fixed] safeAreaInsets call would crash on older versions of iOS Reviewed By: fkgozali Differential Revision: D18118025 fbshipit-source-id: fb7e517b3bcb3e0ba11ae81d8bf8397abc227e04
- Loading branch information
Showing 1 changed file with 11 additions and 2 deletions.