showTitleBar
The showTitleBar function is used to specify whether the title bar is displayed.
Method signature
copy
func showTitleBar(_ showTitleBar: Bool)
Parameters
Parameter | Data Type | Default value | Required | Description |
showTitleBar | Bool |
| Yes | Controls whether to display the title bar.
If this parameter is not specified, the title bar is shown by default. |
Sample
copy
let param = GRVStartupParams()
param.showTitleBar = true
let viewController = try GRVAppContainerLaunch.sharedInstance().openApp(withUrl: url, startupParams: param)
let navigationController = self.navigationController ?? UIApplication.shared.windows.first?.rootViewController as? UINavigationController
navigationController?.pushViewController(viewController, animated: true)
User experience
Value | Screenshot |
| |
|