chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-07 15:57:02 -07:00
parent c6902538cf
commit 0ae8dba962
70 changed files with 585 additions and 520 deletions

View File

@@ -3,7 +3,7 @@ import { Frame, BackstackEntry } from '../frame';
import { NavigationType } from '../frame/frame-common';
// Types.
import { ios as iosView, View } from '../core/view';
import { View, IOSHelper } from '../core/view';
import { PageBase, actionBarHiddenProperty, statusBarStyleProperty } from './page-common';
import { profile } from '../../profiling';
@@ -118,7 +118,7 @@ class UIViewControllerImpl extends UIViewController {
}
// Set autoAdjustScrollInsets in will appear - as early as possible
iosView.updateAutoAdjustScrollInsets(this, owner);
IOSHelper.updateAutoAdjustScrollInsets(this, owner);
// Pages in backstack are unloaded so raise loaded here.
if (!owner.isLoaded) {
@@ -242,7 +242,7 @@ class UIViewControllerImpl extends UIViewController {
super.viewWillLayoutSubviews();
const owner = this._owner.get();
if (owner) {
iosView.updateConstraints(this, owner);
IOSHelper.updateConstraints(this, owner);
}
}
@@ -290,7 +290,7 @@ class UIViewControllerImpl extends UIViewController {
}
}
iosView.layoutView(this, owner);
IOSHelper.layoutView(this, owner);
}
}
@@ -302,7 +302,7 @@ class UIViewControllerImpl extends UIViewController {
const owner = this._owner.get();
if (owner && this.traitCollection.hasDifferentColorAppearanceComparedToTraitCollection && this.traitCollection.hasDifferentColorAppearanceComparedToTraitCollection(previousTraitCollection)) {
owner.notify({
eventName: iosView.traitCollectionColorAppearanceChangedEvent,
eventName: IOSHelper.traitCollectionColorAppearanceChangedEvent,
object: owner,
});
}