Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. func doGetLocalDataUser() -> logInResponse {
  2. var localData : logInResponse? = nil
  3. if let userData = UserDefaults.standard.data(forKey: ConstantStrings.KEY_USER_LOGIN_DATA),let user = try? JSONDecoder().decode(logInResponse.self ,from: userData){
  4. localData = user
  5. }
  6. return localData!
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement