titleFontSize
The titleFontSize property is used to set the font size of the mini program page title. By adjusting this value, you can control the size of the text displayed in the title bar.
Method signature
copy
var titleFontSize: CGFloatParameters
Parameter | Data Type | Default value | Required | Description |
titleFontSize | CGFloat | 17 | No | Set the font size of the mini program page title. The value must be greater than 0. Note: If the value is set too high, may encounter problems when rendering fonts. |
Sample
copy
let param = GRVStartupParams()
param.titleFontSize = 26
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
For example, the following figure shows the title when setting titleFontSize = 26.
