Description
Tell us about the problem
Hi,
For my iOS app I would like to have the navigationBar translucence off.
It works fine, if the page will initially be loaded, but then, if I bring the app to background and bring it back to foreground again (resume), the navigationBar will be displayed
translucent again.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI: 4.1.0 (but also occurred with CLI 4.0.2)
- Cross-platform modules: 4.2.0-2018-05-31-01
- Runtime(s):
tns-android: 4.2.0-2018-05-31-01
tns-ios: 4.1.0 - Plugin(s): "dependencies": {
"nativescript-iqkeyboardmanager": "^1.3.0",
"nativescript-theme-core": "~1.0.4",
"tns-core-modules": "^4.2.0-2018-05-31-01"
},
"devDependencies": {
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"lazy": "1.0.11"
}
Please tell us how to recreate the issue in as much detail as possible.
Please use the attached playground project below to reproduce this issue by following these steps:
- Run the app -> The translucent is off and the NavigationBar looks as expected.
- Bring the app in background by device home button (it must completely be in background)
- Bring the app in foreground again -> The NavigationBar background looks to be translucent again, but as I can read in the logs the value of 'page.frame.ios.controller.navigationBar.translucent' will still be 'false'.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Please see my Playground sample app:
NSPlayground.zip
The login page of the Playground sample project contains exactly what I implemented in my project and the issue also occurs in the Playground sample project.
Please just let me know, if you need further infos.
Cheers!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.