also looking at this
test(ios): cover solid navigation bar title modes
#361
3 files
+22
-1
| @@ -697,6 +697,17 @@ app, the iOS shell's gesture also covers the WebView. Pass | ||
| 697 | 697 | gesture of its own; native screens can still opt out independently with |
| 698 | 698 | `tabSwipeEnabled`. |
| 699 | 699 | |
| 700 | On iOS, a native screen can opt into an opaque navigation bar that uses its | |
| 701 | screen background, including the light/dark variant from `craft.config.json`: | |
| 702 | ||
| 703 | ```js | |
| 704 | craft.navigation.setOptions({ navigationBarSolid: true }) | |
| 705 | ``` | |
| 706 | ||
| 707 | This applies to both standard and large-title bars, and remains in place while | |
| 708 | the screen is pushed, popped, or revealed by a tab swipe. The default remains | |
| 709 | UIKit's translucent material; pass `navigationBarSolid: false` to restore it. | |
| 710 | ||
| 700 | 711 | A screen's content stays inside the safe area. To colour the strips under the |
| 701 | 712 | status bar and the home indicator too, such as a black full-screen timer with |
| 702 | 713 | the bar hidden, set `craft.navigation.setOptions({ hidden: true, |