---
title: "Discussion on \"Test-Driving a Cache Layer in SwiftUI \" | Hashnode"
description: "Discussion on \"Test-Driving a Cache Layer in SwiftUI \". In previous articles, we built a CachingFeedRepository by writing the implementation first and tests after. That works — but it leaves a subtle gap: the tests are shaped by the implementation you alre"
url: "https://hashnode.com/posts/test-driving-a-cache-layer-in-swiftui/6a39a8d95f5f99ff08712679"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Test-Driving a Cache Layer in SwiftUI](https://swiftuicentral.com/test-driving-a-cache-layer-in-swiftui?utm_source=hashnode&utm_medium=feed)

In previous articles, we built a CachingFeedRepository by writing the implementation first and tests after. That works — but it leaves a subtle gap: the tests are shaped by the implementation you alre

Jun 22 · 8 min read · swiftuicentral.com  
Updated Jun 29  
Read the article

## Written by

[Alexandre Alcuvilla](https://hashnode.com/@screwdriver)

@screwdriver

  
[View profile](https://hashnode.com/@screwdriver)

#SwiftUI #Swift #DesignPattern #CleanArchi #iOS

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
