A couple of years back I was working on a project structured with the MVVM pattern. We chose to structure our view models "Kickstarter style" with separate protocols for "Inputs" and "Outputs". In
If you use Storyboards or Xibs, there is added benefit when the preview of your custom view is rendered right in Xcode. We can achieve that using @IBDesignable and @IBInspectable. @IBInspectable make property
Sometimes structures or classes we create in code can be easily expressed by built-in Swift types. Consider the following code: struct Person { let name: String } let ana = Person(name: "Ana")I created simple
To finish our conversion from part 1, we will need all changes, available here. Collection viewRight now we are using old-fashioned collection view implementation, using delegate and data source. I'll simplify this code
This tutorial will use all pieces of information we gathered from previous posts to refactor existing code to RxSwift. I created a base project. Simple iOS application displaying images in the collection view.