Repository navigation
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 |
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. |
The default behavior of
VisitableViewControlleronly updates thetitlewhen the content finishes rendering.If you want to update the native title after that a bridge component is your best bet.