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
MSFNavigationBar does not update the title on the same instance unless titleView is reset.
NavigationBar.Swift :: updateSubtitleView, it checks for navigationItem.titleView == nil and returns without setting navigationItem.titleView = customTitleView.
So without setting viewController.navigationItem.titleView to nil, the following code will not update the navbar title on the same instance of viewController if it was run once before.
viewController.title = "My Custom Title"
navigationController?.pushViewController(viewController, animated: true)
Please look into fixing this. If this is there for a reason for this behaviuor, please expose an API that allows to set navbar title without having set viewController.navigationItem.titleView = nil
Environment Information
Platform:
[ x] iOS
macOS
Please provide a reproduction of the bug:
Explained above.
Priorities and help requested:
Are you willing to submit a PR to fix? (Yes, No)
No
MSFNavigationBar does not update the title on the same instance unless titleView is reset.
NavigationBar.Swift :: updateSubtitleView, it checks for navigationItem.titleView == nil and returns without setting navigationItem.titleView = customTitleView.
So without setting viewController.navigationItem.titleView to nil, the following code will not update the navbar title on the same instance of viewController if it was run once before.
viewController.title = "My Custom Title"
navigationController?.pushViewController(viewController, animated: true)
Please look into fixing this. If this is there for a reason for this behaviuor, please expose an API that allows to set navbar title without having set viewController.navigationItem.titleView = nil
Environment Information
Please provide a reproduction of the bug:
Explained above.
Priorities and help requested:
Are you willing to submit a PR to fix? (Yes, No)
No
Requested priority: (Blocking, High, Normal, Low)
Low
Products/applications affected: (if applicable)
The text was updated successfully, but these errors were encountered: