diff --git a/tns-core-modules/ui/core/view/view.d.ts b/tns-core-modules/ui/core/view/view.d.ts index e9901a873..8ab778172 100644 --- a/tns-core-modules/ui/core/view/view.d.ts +++ b/tns-core-modules/ui/core/view/view.d.ts @@ -798,7 +798,6 @@ export namespace ios { * @param view The view form which to start the search. */ export function getParentWithViewController(view: View): View - export function isContentScrollable(controller: any /* UIViewController */, owner: View): boolean export function updateAutoAdjustScrollInsets(controller: any /* UIViewController */, owner: View): void export function updateConstraints(controller: any /* UIViewController */, owner: View): void; export function layoutView(controller: any /* UIViewController */, owner: View): void; diff --git a/tns-core-modules/ui/core/view/view.ios.ts b/tns-core-modules/ui/core/view/view.ios.ts index 23d4be955..c9cfb4f71 100644 --- a/tns-core-modules/ui/core/view/view.ios.ts +++ b/tns-core-modules/ui/core/view/view.ios.ts @@ -659,21 +659,7 @@ export namespace ios { return view; } - export function isContentScrollable(controller: UIViewController, owner: View): boolean { - let scrollableContent = (owner).scrollableContent; - if (scrollableContent === undefined) { - const view: UIView = controller.view.subviews.count > 0 ? controller.view.subviews[0] : null; - if (view instanceof UIScrollView) { - scrollableContent = true; - } - } - - return scrollableContent === true || scrollableContent === "true"; - } - export function updateAutoAdjustScrollInsets(controller: UIViewController, owner: View): void { - const scrollable = isContentScrollable(controller, owner); - if (majorVersion <= 10) { owner._automaticallyAdjustsScrollViewInsets = false; // This API is deprecated, but has no alternative for <= iOS 10