Changing the title of the navbar programmatically #140
-
Hi! In JS, we can change the title of a page by writing to The use case is that I'm performing an update to a model's title which gets used in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The default behavior of open class VisitableViewController: UIViewController, Visitable {
// ...
open func visitableDidRender() {
navigationItem.title = visitableView.webView?.title
visitableLocationState = .resolved
}
// ...
} If you want to update the native title after that a bridge component is your best bet. |
Beta Was this translation helpful? Give feedback.
The default behavior of
VisitableViewController
only updates thetitle
when the content finishes rendering.If you want to update the native title after that a bridge component is your best bet.