Do-Try-Catch

 


   

     do {

              let responseModel = try JSONDecoder().decode(Model.self, from: data)

                    

         } catch let error as NSError{

                    

           }


Comments

Popular posts from this blog

SubString in Swift

PUSH Notification