From ad2575991aa53c1a1806dfd5dc5e368e1674d73c Mon Sep 17 00:00:00 2001 From: Nathanael Anderson Date: Sat, 10 Oct 2020 11:34:44 -0500 Subject: [PATCH] fix(ios): iOS 10 support with adjustment to UILayoutGuide (#8954) --- packages/core/ui/core/view/view-helper/index.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/ui/core/view/view-helper/index.ios.ts b/packages/core/ui/core/view/view-helper/index.ios.ts index 6801ee879..a53ec6f5d 100644 --- a/packages/core/ui/core/view/view-helper/index.ios.ts +++ b/packages/core/ui/core/view/view-helper/index.ios.ts @@ -201,7 +201,7 @@ export class IOSHelper { static initLayoutGuide(controller: UIViewController) { const rootView = controller.view; - const layoutGuide = UILayoutGuide.alloc().init(); + const layoutGuide = UILayoutGuide.new(); rootView.addLayoutGuide(layoutGuide); NSLayoutConstraint.activateConstraints([layoutGuide.topAnchor.constraintEqualToAnchor(controller.topLayoutGuide.bottomAnchor), layoutGuide.bottomAnchor.constraintEqualToAnchor(controller.bottomLayoutGuide.topAnchor), layoutGuide.leadingAnchor.constraintEqualToAnchor(rootView.leadingAnchor), layoutGuide.trailingAnchor.constraintEqualToAnchor(rootView.trailingAnchor)]);