Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change tabbar title after the add of addbar ? #587

Open
Appuniverse304 opened this issue Oct 7, 2021 · 1 comment
Open

how to change tabbar title after the add of addbar ? #587

Appuniverse304 opened this issue Oct 7, 2021 · 1 comment

Comments

@Appuniverse304
Copy link

Appuniverse304 commented Oct 7, 2021

"addBar(bar.systemBar(), dataSource: self, at: .bottom)"

after this I want to update my baritem title

@Appuniverse304 Appuniverse304 changed the title how to update old tabbar data? how to change tabbar title after the add of addbar ? Oct 8, 2021
@djdance
Copy link

djdance commented Jan 3, 2022

I've made it so:

var titles:[String] = ["title1",...]
...
    func barItem(for bar: TMBar, at index: Int) -> TMBarItemable {
        return TMBarItem(title: titles[index])
    }
...
titles[0] = "changed!"
self.reloadData()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants