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 do I set the dynamic title and subtitle which is received from server api. #54

Open
hardikamal opened this issue Dec 11, 2018 · 1 comment

Comments

@hardikamal
Copy link

Hi @HamzaGhazouani

Thanks for the great library.
I had one question that how do I set the dynamic title and subtitle which is received from server api?
Please help me with this.

@Idomo
Copy link
Contributor

Idomo commented Jan 20, 2019

I guess the "dynamic" issue is only to be able to edit the values if needed, and not something that may be different each time, so you can save those values in UserDefaults when you initiate the app (AppDelegate) so they'll be available all the time and will be set again to the most updated value exists on the server each time the user will open the app.

If the "dynamic" means that each time the response might be different, so you can show some default placeholder of loading and update it to custom placeholder that takes the data from UserDefaults so you'll be able to set it dynamically when you get the data from the server.

Hope it'll help you,
Ido.

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