diff --git a/tns-core-modules/ui/list-view/list-view.ios.ts b/tns-core-modules/ui/list-view/list-view.ios.ts index 899475ec8..524b9538a 100644 --- a/tns-core-modules/ui/list-view/list-view.ios.ts +++ b/tns-core-modules/ui/list-view/list-view.ios.ts @@ -205,17 +205,6 @@ class UITableViewRowHeightDelegateImpl extends NSObject implements UITableViewDe } } -// TODO: Remove this declaration when 'tns-platform-declarations' is update with iOS 11 declarations -declare const enum UIScrollViewContentInsetAdjustmentBehavior { - Automatic = 0, - - ScrollableAxes = 1, - - Never = 2, - - Always = 3 -} - export class ListView extends ListViewBase { public _ios: UITableView; private _dataSource; @@ -233,11 +222,6 @@ export class ListView extends ListViewBase { this._ios.estimatedRowHeight = DEFAULT_HEIGHT; this._ios.rowHeight = UITableViewAutomaticDimension; this._ios.dataSource = this._dataSource = DataSource.initWithOwner(new WeakRef(this)); - if (parseInt(device.sdkVersion) >= 11) { - // TODO: Remove the cast to 'any' when 'tns-platform-declarations' is update with iOS 11 declarations - (this._ios).contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentBehavior.Never; - } - this._delegate = UITableViewDelegateImpl.initWithOwner(new WeakRef(this)); this._heights = new Array(); this._map = new Map();