I am designing an app which has a login screen. When the user enters username and password, a call to web service is done which returns a token on successful login. Now I need to send this token to every HTTP call inside different screens across the app.
I want to achieve similar functionality like this: Where to store global constants in an iOS application?
As there won't be any .h
and .m
files in Swift, how do I store these global strings (Note these are not constants, these are global variables) that I need to be able to access in any view controller