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 do I change placeholder's title and subtitle when I am calling showNoConnectionPlaceholder() and others? #18
Comments
Hi @junweimah,
This is what you are looking for ? |
@HamzaGhazouani |
Where should I place this code in? |
You can put it in the viewDidLoad for example |
I tried in viewDidLoad, but nothing is showing |
can you please share the code of your controller ? |
in viewDidLoad
Edit: if I am using |
Try this:
|
Wow, it works! Thanks ! So I have to have the whole block of code to cuztomize it :
and then finally use it when I want to display using :
correct? I will find a way to further simplify the code. Thanks! |
Yes exactly, any PR is welcome ;) |
In this way, self.tableView_.showLoadingPlaceholder(title: "This is optional Title", subtitle: "This is optional Subtitle", action: "This is optional action") |
It will be good if you put it at high priority, |
I have a simple question, sorry for being a ios newbie.
How do I change the title and sub title wording as I am displaying the placeholders?
I found out that the wordings are in
PlaceholderData.swift
, inpublic struct PlaceholderData
.Lets say I do not wish to hard code them here, but set it to something when I am calling
tableView.showNoConnectionPlaceholder()
, how do I do it?I also found the file
PlaceholdersProvider.swift
, which I set it to be :But the message is still the same
How do I do it?
Thanks
The text was updated successfully, but these errors were encountered: