From 2a10b7a220de6de17a211002836cd00bd0e9726d Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Wed, 25 Oct 2017 13:07:59 +0300 Subject: [PATCH] Remove public iOS types from view.d.ts --- tns-core-modules/application/application.ios.ts | 2 +- tns-core-modules/ui/core/view/view.d.ts | 6 +++--- tns-core-modules/ui/tab-view/tab-view.ios.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tns-core-modules/application/application.ios.ts b/tns-core-modules/application/application.ios.ts index 4c60b589f..33b804976 100644 --- a/tns-core-modules/application/application.ios.ts +++ b/tns-core-modules/application/application.ios.ts @@ -244,7 +244,7 @@ function getViewController(view: View): UIViewController { if (viewController instanceof UIViewController) { return viewController; } else if (view.ios instanceof UIView) { - viewController = iosView.UILayoutViewController.initWithOwner(new WeakRef(view)); + viewController = iosView.UILayoutViewController.initWithOwner(new WeakRef(view)) as UIViewController; viewController.view.addSubview(view.ios); return viewController; } else { diff --git a/tns-core-modules/ui/core/view/view.d.ts b/tns-core-modules/ui/core/view/view.d.ts index 471b06162..41580cd20 100644 --- a/tns-core-modules/ui/core/view/view.d.ts +++ b/tns-core-modules/ui/core/view/view.d.ts @@ -645,9 +645,9 @@ export const isEnabledProperty: Property; export const isUserInteractionEnabledProperty: Property; export namespace ios { - export function updateConstraints(controller: UIViewController, owner: View): void; - export function layoutView(controller: UIViewController, owner: View): void; - export class UILayoutViewController extends UIViewController { + export function updateConstraints(controller: any /* UIViewController */, owner: View): void; + export function layoutView(controller: any /* UIViewController */, owner: View): void; + export class UILayoutViewController { public static initWithOwner(owner: WeakRef): UILayoutViewController; } } \ No newline at end of file diff --git a/tns-core-modules/ui/tab-view/tab-view.ios.ts b/tns-core-modules/ui/tab-view/tab-view.ios.ts index ba072a81a..fb16fe5bc 100644 --- a/tns-core-modules/ui/tab-view/tab-view.ios.ts +++ b/tns-core-modules/ui/tab-view/tab-view.ios.ts @@ -296,7 +296,7 @@ export class TabView extends TabViewBase { newController = item.view.ios.controller; item.setViewController(newController, newController.view); } else { - newController = iosView.UILayoutViewController.initWithOwner(new WeakRef(item.view)); + newController = iosView.UILayoutViewController.initWithOwner(new WeakRef(item.view)) as UIViewController; newController.view.addSubview(item.view.nativeViewProtected); item.view.viewController = newController; item.setViewController(newController, item.view.nativeViewProtected);