When you dive into .map and .flatMap ocean, you may be confused what is the difference. Consider such example: let arr = [1,2,3,4,5,6] print(arr.map{ return String($0 * 2)+”x” }) […]
iOS
Posted on:
Testing with Swift 2.x
Testing is good practice, but sometimes you may get into trap. Opposite to Objective-C, in Swift 2.x you don’t need to add each file to your test target, […]
iOS
Posted on:
Swift: What “Invalid predicate: nil RHS” means and how to handle?
Sooner or later you will face with “Invalid predicate: nil RHS”. What does it mean? Fortunately solution is very simple, somewhere in your code, you are using NSPredicate […]