Debugging Push Notifications with Knuff
Debugging and testing Push notification is always tricky and time consuming. Knuff
OS X app along with Knuff iOS app can make our lives a little easier to debug and test push notification.
MVVM Design Pattern
As we are familiar with MVC design pattern and it is one of the standard approach to build iOS Applications. MVVM is very similar to MVC. It formalizes the tightly coupled nature of the view and controller and introduces a new component view-model
.
Defer keyword in Swift
defer
is a new keyword indroduced in Swift 2.0. With this statement you can declare clean-up code, that is executed just before the current scope ends.
Checking Swift coding style and conventions using Swiftlint
SwiftLint is a tool which enforce to follow Swift style and conventions, based on GitHub’s Swift Style Guide.
Intro to Protocol Oriented programming
Apple had added a new feature to the protocol i.e. protocol extension.While it may only seem like a minor feature at first, but this improved feature in swift allow us for a new type of programming i.e. protocol-oriented programming.
TODO and FIXME as warnings in Xcode
In Objective-C Xcode generate compile time warning by using #warning
preprocessor directive in your code. Unfortunately, this is not available when using Swift.