---
title: "Discussion on \"Applying the Decorator Pattern in SwiftUI to Add Caching Without Changing Existing Code\" | Hashnode"
description: "Discussion on \"Applying the Decorator Pattern in SwiftUI to Add Caching Without Changing Existing Code\". You've built a clean feed feature. The RemoteFeedRepository fetches items from the network, the LoadFeedUseCase runs the business logic, and the ViewModel drives the view. Everything is tested and wor"
url: "https://hashnode.com/posts/applying-the-decorator-pattern-in-swiftui-to-add-caching-without-changing-existing-code/69f5e62f0ab374db99ecbb4a"
---

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

Discussion

# [Applying the Decorator Pattern in SwiftUI to Add Caching Without Changing Existing Code](https://swiftuicentral.com/applying-the-decorator-pattern-in-swiftui-to-add-caching-without-changing-existing-code?utm_source=hashnode&utm_medium=feed)

You've built a clean feed feature. The RemoteFeedRepository fetches items from the network, the LoadFeedUseCase runs the business logic, and the ViewModel drives the view. Everything is tested and wor

May 2 · 7 min read · swiftuicentral.com  
Read the article

-   [#ios](https://hashnode.com/tag/ios)
-   [#decorators](https://hashnode.com/tag/decorators)
-   [#swift](https://hashnode.com/tag/swift)

## 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.
