Monthly Archives: November 2018

Swift Defer Statement explained

      No Comments on Swift Defer Statement explained

When you want to ensure that a code block is executed just before control exits the scope, Swift Defer Statement comes to your rescue. Sometimes a function is required to have multiple conditional exit point and covering those exit points without swift defer statement can lead to code duplication or it might… Read more »

Xcode SVN is scheduled for addition, but is missing Error

When a file is scheduled for commit according to svn records but is not present within the root directory, svn throws “is scheduled for addition, but is missing” error. There can be many causes for this error most common one is renaming the file from finder instead of refactoring and deleting… Read more »

Swift nonmutating setters. an Oxymoron?

      No Comments on Swift nonmutating setters. an Oxymoron?

While going through Xcode 10.1 release notes I stumbled upon a very unfamiliar term “nonmutating setters”. Inquisitiveness had the best of me and I spent time reading about it and implementing examples. Here is the jest for you nonmutable setters cannot be used within Classes or protocol bound classes nonmutable setters… Read more »