You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q: How to change navigation style to largeTitle style?
Guide & Snippet
unfortunately, UIKIT has not yet officially provided largeTitle funtion of navigationBar. but, you can customize it if necessary.
please refer to the snippet below.
classCustomGroupChannelViewController:SBUGroupChannelViewController{overridefunc setupViews(){
super.setupViews()self.navigationController?.navigationBar.prefersLargeTitles = true
}openoverridefunc viewWillDisappear(_ animated:Bool){
super.viewWillDisappear(animated)self.navigationController?.navigationBar.prefersLargeTitles = false
}overridefunc baseChannelModule(_ headerComponent:SBUBaseChannelModule.Header, didUpdateTitleView titleView:UIView?){// After the `titleView` is set in the header component of the module,// if you required for control in the `viewController`, you can handle `titleView` in here .}}// Register your `CustomGroupChannelViewController` to `SBUViewControllerSet`SBUViewControllerSet.GroupChannelViewController =CustomGroupChannelViewController.self
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Guide & Snippet
Reference
Beta Was this translation helpful? Give feedback.
All reactions