# \#architecture

**URL:** https://forums.swift.org/tag/architecture/491.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Bylaws - an architectural linter built for developers and coding agents](https://forums.swift.org/t/bylaws-an-architectural-linter-built-for-developers-and-coding-agents/89669)

<div class="topic-metadata">

**Author:** [@suyashsrijan](https://forums.swift.org/u/suyashsrijan)\
**Replies:** 0\
**Last updated:** [September 19, 2026, 6:59pm UTC](https://forums.swift.org/t/bylaws-an-architectural-linter-built-for-developers-and-coding-agents/89669 "2026-09-19T18:59:35Z")

</div>

I've been working on a powerful architectural linting library for Swift projects on the side for a while now, and it's available to use: Bylaws. I started working on it because I was not happy with some of the simila…

---

## [IntentFlow: an experimental workflow-first architecture for iOS apps](https://forums.swift.org/t/intentflow-an-experimental-workflow-first-architecture-for-ios-apps/88100)

<div class="topic-metadata">

**Author:** [@emrecanozturk](https://forums.swift.org/u/emrecanozturk)\
**Replies:** 0\
**Last updated:** [July 7, 2026, 6:46am UTC](https://forums.swift.org/t/intentflow-an-experimental-workflow-first-architecture-for-ios-apps/88100 "2026-07-07T06:46:06Z")

</div>

Hi everyone, I wanted to share an experimental iOS architecture proposal I have been working on: IntentFlow IntentFlow is a workflow-first, AI-ready architecture for iOS apps. The core idea is to model feature behavi…

---

## [\[GSoC 2026\] Globally Scoped Traits for Swift Testing: Architecture & Implementation Approach](https://forums.swift.org/t/gsoc-2026-globally-scoped-traits-for-swift-testing-architecture-implementation-approach/85362)

<div class="topic-metadata">

**Author:** [@ArihantMarwaha](https://forums.swift.org/u/ArihantMarwaha)\
**Replies:** 15\
**Last updated:** [March 31, 2026, 3:05am UTC](https://forums.swift.org/t/gsoc-2026-globally-scoped-traits-for-swift-testing-architecture-implementation-approach/85362 "2026-03-31T03:05:44Z")

</div>

Hi @jerryjrchen and the Swift Testing community, I'm Arihant, a Swift developer and a WWDC25 Swift Student Challenge Winner. As an iOS Developer, I recently integrated automated testing using XCTest into our CI/CD pipe…

---

## [Introducing Service — a modern DI library designed for Swift Concurrency and SwiftUI](https://forums.swift.org/t/introducing-service-a-modern-di-library-designed-for-swift-concurrency-and-swiftui/84114)

<div class="topic-metadata">

**Author:** [@NSLogMeng](https://forums.swift.org/u/NSLogMeng)\
**Replies:** 12\
**Last updated:** [February 10, 2026, 5:23am UTC](https://forums.swift.org/t/introducing-service-a-modern-di-library-designed-for-swift-concurrency-and-swiftui/84114 "2026-02-10T05:23:41Z")

</div>

Hi Swift community! :waving\_hand: I’d like to introduce Service, a lightweight dependency injection (DI) library for modern Swift projects. Service is inspired by Swinject (familiar container ergonomics) and swift-depe…

---

## [Introducing Algebraic Effects and Effect Handlers for Swift](https://forums.swift.org/t/introducing-algebraic-effects-and-effect-handlers-for-swift/84061)

<div class="topic-metadata">

**Author:** [@Alex-Ozun](https://forums.swift.org/u/Alex-Ozun)\
**Replies:** 2\
**Last updated:** [January 12, 2026, 10:11am UTC](https://forums.swift.org/t/introducing-algebraic-effects-and-effect-handlers-for-swift/84061 "2026-01-12T10:11:55Z")

</div>

Hello, Swift Forum :waving\_hand: I’m excited to announce the preview of swift-effect - an architecture-agnostic effect system that makes side effects (such as I/O, networking, randomness, concurrency) controllable, comp…

---

## [We built Harmonize: A modern open-source linter for Swift that enforces architecture as unit tests](https://forums.swift.org/t/we-built-harmonize-a-modern-open-source-linter-for-swift-that-enforces-architecture-as-unit-tests/79508)

<div class="topic-metadata">

**Author:** [@steliosfran](https://forums.swift.org/u/steliosfran)\
**Replies:** 2\
**Last updated:** [April 28, 2025, 12:23am UTC](https://forums.swift.org/t/we-built-harmonize-a-modern-open-source-linter-for-swift-that-enforces-architecture-as-unit-tests/79508 "2025-04-28T00:23:16Z")

</div>

Hi everyone, we’ve just released the first version of Harmonize, a modern, open-source linter for Swift that lets your team enforce architecture and best practices through lint rules written as unit tests, using Quick, X…

---

## [When should one use swift extensions? \[how to avoid over using it?\]](https://forums.swift.org/t/when-should-one-use-swift-extensions-how-to-avoid-over-using-it/66314)

<div class="topic-metadata">

**Author:** [@vigdora](https://forums.swift.org/u/vigdora)\
**Replies:** 29\
**Last updated:** [June 28, 2024, 4:06pm UTC](https://forums.swift.org/t/when-should-one-use-swift-extensions-how-to-avoid-over-using-it/66314 "2024-06-28T16:06:21Z")

</div>

This is somehow philosophical questions, but I hope you chose to bear with me... I was introduced to extensions concept for the first time when I started learing swift. although some similar ideas exists in other langu…

---

## [Clean Architecture using SwiftUI + Combine](https://forums.swift.org/t/clean-architecture-using-swiftui-combine/71789)

<div class="topic-metadata">

**Author:** [@ngocpd-1250](https://forums.swift.org/u/ngocpd-1250)\
**Replies:** 1\
**Last updated:** [May 13, 2024, 8:15am UTC](https://forums.swift.org/t/clean-architecture-using-swiftui-combine/71789 "2024-05-13T08:15:05Z")

</div>

I've just put together a base code for clean architecture using SwiftUI + Combine. I'd really appreciate it if anyone could take a look and give some feedback. Thanks!

---

## [One type per file: helpful or harmful?](https://forums.swift.org/t/one-type-per-file-helpful-or-harmful/70524)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 20\
**Last updated:** [March 22, 2024, 4:01pm UTC](https://forums.swift.org/t/one-type-per-file-helpful-or-harmful/70524 "2024-03-22T16:01:21Z")

</div>

i had an interesting debate with a colleague this afternoon - it was over some snippets of code that look like this: public func build(pipeline:inout Mongo.PipelineEncoder) { Self.loadSubscribers(&pipeline, premium:…

---

## [What is the proper way to share state among views with Swift Data?](https://forums.swift.org/t/what-is-the-proper-way-to-share-state-among-views-with-swift-data/68617)

<div class="topic-metadata">

**Author:** [@MadeByDouglas](https://forums.swift.org/u/MadeByDouglas)\
**Replies:** 3\
**Last updated:** [February 27, 2024, 11:41pm UTC](https://forums.swift.org/t/what-is-the-proper-way-to-share-state-among-views-with-swift-data/68617 "2024-02-27T23:41:11Z")

</div>

So I'm building a relatively simple app using all the latest iOS 17 SwiftUI and Swift Data. I'm trying to follow Apple sample code and the "Model View" pattern (which I find pretty helpful Building Large Scale Apps Swift…

---

## [Polymorphism and protocol in swift library](https://forums.swift.org/t/polymorphism-and-protocol-in-swift-library/66921)

<div class="topic-metadata">

**Author:** [@la-pieuvre](https://forums.swift.org/u/la-pieuvre)\
**Replies:** 7\
**Last updated:** [August 24, 2023, 4:55pm UTC](https://forums.swift.org/t/polymorphism-and-protocol-in-swift-library/66921 "2023-08-24T16:55:59Z")

</div>

Looking into many swift library, i found that many types that have a common interface are usually not implementing a common protocol. For exemple in Swift-Syntax, ClassDeclSyntax and StructDeclSyntax are basically identi…

---

## [A Light Weight MVVMLight Architecture Pattern in Swift](https://forums.swift.org/t/a-light-weight-mvvmlight-architecture-pattern-in-swift/63722)

<div class="topic-metadata">

**Author:** [@WebsoftProfession](https://forums.swift.org/u/WebsoftProfession)\
**Replies:** 5\
**Last updated:** [August 10, 2023, 6:36am UTC](https://forums.swift.org/t/a-light-weight-mvvmlight-architecture-pattern-in-swift/63722 "2023-08-10T06:36:04Z")

</div>

I have create a light weight architecture pattern MVVMLight for swift programming language. It supports both SwiftUI & UIKit. I request you to review this and share your valuable feedback. Please vote and share. MVVMLi…

---

## [SwiftObserver: Easy Elegant (Reactive) Observing? #NoRx](https://forums.swift.org/t/swiftobserver-easy-elegant-reactive-observing-norx/60807)

<div class="topic-metadata">

**Author:** [@flowtoolz](https://forums.swift.org/u/flowtoolz)\
**Replies:** 0\
**Last updated:** [October 12, 2022, 10:04am UTC](https://forums.swift.org/t/swiftobserver-easy-elegant-reactive-observing-norx/60807 "2022-10-12T10:04:18Z")

</div>

Where do I even begin? :sweat\_smile: Maybe with the repo: https://github.com/codeface-io/SwiftObserver I've been evolving this for far too long without daring to share it. SwiftObserver is a simple but universal, read…

---

## [Firestarter : an event-driven architectural framework for clean, predictable, testable Swift apps](https://forums.swift.org/t/firestarter-an-event-driven-architectural-framework-for-clean-predictable-testable-swift-apps/53873)

<div class="topic-metadata">

**Author:** [@valentinradu](https://forums.swift.org/u/valentinradu)\
**Replies:** 4\
**Last updated:** [March 3, 2022, 7:47pm UTC](https://forums.swift.org/t/firestarter-an-event-driven-architectural-framework-for-clean-predictable-testable-swift-apps/53873 "2022-03-03T19:47:22Z")

</div>

Hello Swift devs! This week I've open-sourced Firestarter, a framework designed to overcome the challenges one has when building large scale apps with SwiftUI (but it could also work great in other contexts, like CLI app…

---

## [SwiftUI Apps Decouple View and Data layers](https://forums.swift.org/t/swiftui-apps-decouple-view-and-data-layers/48591)

<div class="topic-metadata">

**Author:** [@igor](https://forums.swift.org/u/igor)\
**Replies:** 4\
**Last updated:** [June 24, 2021, 4:50am UTC](https://forums.swift.org/t/swiftui-apps-decouple-view-and-data-layers/48591 "2021-06-24T04:50:57Z")

</div>

Hi, I'm playing around SwiftUI App code organization. I've skimmed through the forum but found only one topic related to SwiftUI architecture. Aspirations: decouple View and Data layers and loosen dependencies betwe…

---

## [What is the architecture officially recommended by Apple for SwiftUI applications?](https://forums.swift.org/t/what-is-the-architecture-officially-recommended-by-apple-for-swiftui-applications/44930)

<div class="topic-metadata">

**Author:** [@Tof](https://forums.swift.org/u/Tof)\
**Replies:** 2\
**Last updated:** [February 21, 2021, 6:45am UTC](https://forums.swift.org/t/what-is-the-architecture-officially-recommended-by-apple-for-swiftui-applications/44930 "2021-02-21T06:45:17Z")

</div>

Hi, Since SwiftUI came out I have seen it used on almost all architectures like MVC, MVP, MVP + Coordinators, MVVM, MVVM-P, Clean Swift (VIP), Clean Architecture, VISCS, VIPER and Redux. Those who choose the architectu…
