Skip to content

Commit

Permalink
feat(ios): set preferredStatusBarStyle in Page VCs (#8241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Vakrilov committed Jan 14, 2020
1 parent e8f5ac8 commit 4e48e68
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nativescript-core/ui/page/page.ios.ts
Expand Up @@ -294,6 +294,15 @@ class UIViewControllerImpl extends UIViewController {
}
}
}

public get preferredStatusBarStyle(): UIStatusBarStyle {
const owner = this._owner.get();
if (owner) {
return owner.statusBarStyle === "dark" ? UIStatusBarStyle.LightContent : UIStatusBarStyle.Default;
} else {
return UIStatusBarStyle.Default;
}
}
}

export class Page extends PageBase {
Expand Down

0 comments on commit 4e48e68

Please sign in to comment.