All About Routing in Clean Swift

Since I started talking about Clean Swift iOS architecture, I’ve received a lot of positive feedback. Many people have downloaded my Xcode templates and put them to good use. I am truly grateful that I am able to help you write better apps. Many of you also asked some very insightful questions. I’ve answered some […]

Continue reading →

Clean Swift TDD Part 3 – Worker

In part 1 and part 2, you tested the ListOrdersViewController and ListOrdersInteractor, respectively. But we left it kind of hanging because we mocked out the OrdersWorker. In this post, you’ll test the OrdersWorker to make sure it returns the correct orders. But first, let’s abstract away the actual details of fetching orders from a data […]

Continue reading →

Clean Swift TDD Part 2 – Interactor

In my TDD part 1 post, you wrote a test to make sure ListOrdersViewController invoke the fetchOrders() method of the ListOrdersInteractor. Now, it’s time to make the interactor does something with the request. You’ll also see exactly how to delegate the business logic of fetching orders from the interactor to the worker. Prepare the OrdersWorker […]

Continue reading →