Difference between Swift and Objective – c

If you are still stuck with objective-c, please read this article. In 2014 Apple released a new programming language called Swift, You might have a question in your mind why apple introduced a new programming language, even objective-c was fulfilling all requirements of developers. There are many reasons like Objective C is an old age programming language in terms of architecture and frameworks built in it. Objective C was designed and developed for developing MAC OS applications, Not for new generation hardware like iPhone, iPad, Apple Watch, Swift is designed to keep those devices on priority also. Syntactically and development …

Read moreDifference between Swift and Objective – c

Result In Swift

Apple introduced Result standard library into Swift Codebase in swift 5, Result has enum type, Result represents the outcome of any Operation or Functionality, like calling asynchronous API call, API response may be Success or failure, We can use Result to represent the combination of API Success and Fail. Let us see how Result works, this is how Result defined in Swift library Result returns either success or failure with value. Success type is generic means it could be anything Array of model objects like [Employee] more may be NSData, String, Int, but failure should always conform Error Type. Syntax …

Read moreResult In Swift