Category: iOS

  • Xcode 12 and Cocoapods – deployment target warning

    With the latest version of Xcode just released few days ago, we updated to Xcode 12 to verify the project build successfully. One of the changes is the dropped support of iOS 8. This was not directly affecting us, as our minimum deployment target is currently set to iOS 10. This is no problem for…

  • Writing code, the Swift style

    Writing code, the Swift style

    Different people have different styles of writing code. Working in a team means mixed styles, even when all developers are using a coding convention. Writing code in Swift can sometimes lead to unneeded if let, downcasting or force unwrapping values. An easy way to resolve these and many other issues is by introducing SwiftLint to…

  • Better way of initializing properties with default values

    Better way of initializing properties with default values

    When using Objective-C, I used to initialize properties for some of the elements in the ViewController like this: Inside the method initView I would write the logic to preset how elements should look and behave. The problem with this – as more and more properties or outlets get added – the more I have to…

  • Switching from Core Data to Realm

    Working with large datasets in Core Data can be a real pain. In the last months my colleagues and I have put a lot of efforts in optimising the way our JSON to Core Data logic works. To keep the data from the server to the client’s device we have to make a request, parse…

  • Testing Fastlane

    In the following weeks I am going to test https://fastlane.tools. It seems like a great tool to boost the whole deployment process. You can expect my thoughts on it once I give it a try.

  • Installing CocoaPods on OS X 10.11 El Capitan

    Installing CocoaPods on OS X 10.11 El Capitan

    With the release of OS X El Capitan a new security enhancement called “System Integrity Protection” widely referred to as “rootless” was introduced. Because of this several directories are now considered system-specific and thus not writable by the user anymore. This change makes installing CocoaPods little trickier. If you try to execute the command in…