Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security Toolsntlmscout(20.09.2026 um 18:32 Uhr)
IT Security Toolsdiscord-crasher(20.09.2026 um 19:33 Uhr)
IT Security Nachrichten2026-09-15: SmartApeSG ClickFix to unidentified RAT to MeshAgent(20.09.2026 um 19:03 Uhr)
IT Security NachrichtenGemini soll in KI-Sicherheitschecks drei Systeme gehackt haben(20.09.2026 um 19:14 Uhr)
Malware / Trojaner / Viren2026-09-15: SmartApeSG ClickFix to unidentified RAT to MeshAgent(20.09.2026 um 19:31 Uhr)
Sicherheitslücken (CVE)An AI Helped Researchers Break Into OpenAI(20.09.2026 um 20:01 Uhr)
IT Security NachrichtenFirefox 156 startet PDF-Viewer 45 Prozent schneller(20.09.2026 um 16:23 Uhr)
IT Security Toolsntlmscout(20.09.2026 um 18:32 Uhr)
IT Security Toolsdiscord-crasher(20.09.2026 um 19:33 Uhr)
IT Security Nachrichten2026-09-15: SmartApeSG ClickFix to unidentified RAT to MeshAgent(20.09.2026 um 19:03 Uhr)
IT Security NachrichtenGemini soll in KI-Sicherheitschecks drei Systeme gehackt haben(20.09.2026 um 19:14 Uhr)
Malware / Trojaner / Viren2026-09-15: SmartApeSG ClickFix to unidentified RAT to MeshAgent(20.09.2026 um 19:31 Uhr)
Sicherheitslücken (CVE)An AI Helped Researchers Break Into OpenAI(20.09.2026 um 20:01 Uhr)
IT Security NachrichtenFirefox 156 startet PDF-Viewer 45 Prozent schneller(20.09.2026 um 16:23 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

SPM Modular Programming Architecture

Reagiere als Erste:r — dein Feedback zählt!

Let me frame this article with a couple of not-so-bold predictions for software development.
First, agentic coding will be responsible for the majority of code written. This is already achievable today with an optimised development harness and spec-driven development.

As a consequence, I expect feature development to accelerate dramatically resulting in codebases that continue to grow in both size and complexity. This is a particular concern for enterprise applications, which are already operating at significant scale.

To prepare for this new era of code growth, architecture must prioritise modularity, isolation, and clear dependency boundaries.

This iOS architecture demonstrates a scalable approach that uses Swift Package Manager (SPM) as the foundation for modular application design.

Core Concept

At the heart of this architecture is a simple idea:

The Xcode project should be almost empty — everything lives in Swift Packages.

Key principles:

  • The Xcode project is intentionally extremely thin; ideally only 10-15 lines of code
  • All features, shared logic, and UI components are implemented as Swift Packages
  • Packages are fully self-contained:
    • Unit tests
    • Mocks
    • Even UI tests (where applicable)
  • Dependency management is handled entirely through Package.swift

Project Structure

App.swift only contains enough code to hand off the the first feature package which handles the entry/launch functionality before routing to the next package

Xcode Project
├── App/
│   └── App.swift
├── Feature Packages/ (local SPM)
│   └── ...
├── Shared Packages/ (local or remote SPM)
│   └── ...
├── Package Dependencies/ (3rd party SPM)
│   └── ...
├── AGENTS.md
└── Harness/

Feature Package Structure

Each feature is fully self-contained. Choose your preferred intra-package architecture such as MVVM-C or uni-directional

Package/
├── Package.swift
├── Sources
│   ├── Concurrent/
│   │   ├── Models/ (Sendable)
│   │   └── Service.swift (actor)
│   │
│   └── Main/ (UI layer)
│       ├── Views/
│       ├── PackageCoordinator.swift
│       └── PackageRoute.swift
│
└── Tests/

Harness

An harness is essential to accurate agentic contributions. The reference project include agentic harness documentation optimised for agents to accurately contribute features. As your project grows the harness must be maintained and optimised to remain effective

Concurrency Model

Swift Structured Concurrency can be difficult to adopt correctly, but when used well it provides significant benefits in predictability, stability and UI responsiveness.
Each feature package is split into two logical layers:

  • Main@MainActor UI layer
  • Concurrent → isolated concurrency layer

This provides a clear separation between:

  • UI logic
  • Asynchronous / concurrent operations

Example responsibilities:

  • Main:

    • Views
    • Coordinators
    • Routing logic
  • Concurrent:

    • Services (actor)
    • Models (Sendable)
    • Other actors

Benefits

  • Scalability through clear module boundaries
  • Parallel development across agent-assisted teams
  • Faster CI by testing only affected packages
  • Single .xcodeproj (no .xcworkspace)
  • Agent-friendly, deterministic architecture

Dependency Management Recommendation

Avoid using:

Xcode → “Add Package Dependencies” UI

Why?

  • It mutates the .xcodeproj
  • Reduces source control clarity
  • Increases the likelihood of merge conflicts

Instead:

  • Declare dependencies explicitly in each Package.swift
  • Pin to exact versions of remote packages

This ensures:

  • Reproducible builds
  • Transparent dependency graphs
  • CI consistency

Reference Project

Explore the setup of the thin project, feature packages and the inter-package navigation with this reference project.

Included is a harness to allow agents to contribute features while adhering to the project's architectral patterns.

github.com/fraserscottmorrison/spm-modular-programming

Google provides an excellent reference Android project for a similarly modular architecture utilising gradle

github.com/android/nowinandroid

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten SPM Modular Programming Architecture

Thematisch verwandte Begriffe: Modular, Programming, Architecture · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-93956 | A flaw has been found in olivier-ls PHP-FTS up to 1.1.2. Affected by thi…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick