# \[Hotwire\]\[Native\]\[iOS\] prevent tab bar items from having their title changed on page load

**URL:** <https://discuss.hotwired.dev/t/hotwire-native-ios-prevent-tab-bar-items-from-having-their-title-changed-on-page-load/6284>\
**Category:** General\
**Created:** [March 22, 2025, 12:20am UTC](https://discuss.hotwired.dev/t/hotwire-native-ios-prevent-tab-bar-items-from-having-their-title-changed-on-page-load/6284 "2025-03-22T00:20:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorianmariecom](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/dorianmariecom/32/4071_2.png) [@dorianmariecom](https://discuss.hotwired.dev/u/dorianmariecom)\
**Post date:** [March 22, 2025, 12:20am UTC](https://discuss.hotwired.dev/t/hotwire-native-ios-prevent-tab-bar-items-from-having-their-title-changed-on-page-load/6284/1 "2025-03-22T00:20:39Z")

</div>

in turbo-ios there is:

```swift
...

open class VisitableViewController: UIViewController, Visitable {
...
    open func visitableDidRender() {
        title = visitableView.webView?.title
    }
...
}
...

```

here `this` is `HotwireNative.HotwireWebViewController`, visitableView is `HotwireNative.VisitableView`, webView is `WKWebView`, and visitableDelegate is `HotwireNative.Session`

i understand this is used to change the title of the top bar

but it’s also changing the title of my tab bar item, it should be “account” and it’s the user name (the title of the html page)

 ![issue](https://canada1.discourse-cdn.com/flex027/uploads/stimulusjs/original/2X/0/0f7174069e82230e0503ba829b9e114e28353127.jpeg)

i’m pretty new to swift, just read the hotwire native book

---

<div class="post-metadata">

**Author:** ![dorianmariecom](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/dorianmariecom/32/4071_2.png) [@dorianmariecom](https://discuss.hotwired.dev/u/dorianmariecom)\
**Post date:** [March 22, 2025, 1:11am UTC](https://discuss.hotwired.dev/t/hotwire-native-ios-prevent-tab-bar-items-from-having-their-title-changed-on-page-load/6284/2 "2025-03-22T01:11:32Z")

</div>

found a solution [Working with native controls · Issue #101 · turbolinks/turbolinks-ios · GitHub](https://github.com/turbolinks/turbolinks-ios/issues/101#issuecomment-335411356)

---

<div class="post-metadata">

**Author:** ![dorianmariecom](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/dorianmariecom/32/4071_2.png) [@dorianmariecom](https://discuss.hotwired.dev/u/dorianmariecom)\
**Post date:** [March 22, 2025, 1:23am UTC](https://discuss.hotwired.dev/t/hotwire-native-ios-prevent-tab-bar-items-from-having-their-title-changed-on-page-load/6284/3 "2025-03-22T01:23:46Z")

</div>

```auto
import HotwireNative
import UIKit

open class VisitableViewController: UIViewController, Visitable {
    public var visitableDelegate: (any HotwireNative.VisitableDelegate)?
    public var visitableView: HotwireNative.VisitableView!
    public var visitableURL: URL!
    
    open func visitableDidRender() {
        navigationItem.title = visitableView.webView?.title
    }
}

```

here is the fix
