Ideal architecture for an app entirely in SwiftUI? Example code repo would be great

This page summarizes the projects mentioned and recommended in the original post on /r/SwiftUI

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. IceCubesApp

    A SwiftUI Mastodon client

    Check out IceCubesApp which is an Open Source mastodon client written entirely in SwiftUI https://github.com/Dimillian/IceCubesApp

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. swift-composable-architecture

    A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.

    I’ve built a couple of apps with this framework: https://github.com/pointfreeco/swift-composable-architecture

  4. ItunesSearchApp

    App that uses iTunes Search API,

    I made an app for the iTunes Search API using multiple screens. It uses MVVM. https://github.com/gahntpo/ItunesSearchApp

  5. DogsClient

    A SwiftUI architectural research project that consumes the dog.ceo API

    The best I could come up with was this - https://github.com/lutes1/DogsClient The views, viewmodels and services are decoupled and can be tested and used separately (which was the real goal) but it has some flaws, for example if for some reason the whole navigation stack is re-rendered which is normal in SwiftUI (showing the keyboard for example) then the state from the first screen is recreated and God knows where you can end up in the navigation tree next.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Kaleidoscope of iOS app architectures

    3 projects | dev.to | 29 Jan 2024
  • My largest project yet: A fully themable, powerful task manager and daily planner built with SwiftUI. Available on iPhone and iPad for free (no ads, IAP or data collected).

    1 project | /r/iOSProgramming | 17 Sep 2023
  • SwiftUI Structure and Architecture

    1 project | /r/SwiftUI | 17 May 2023
  • What design patterns exist and which should I learn for SwiftUI?

    1 project | /r/iOSProgramming | 26 Apr 2023
  • Use of EnvironmentObjects for sharing ObservableObjects

    1 project | /r/SwiftUI | 18 Feb 2023

Did you know that Swift is
the 15th most popular programming language
based on number of references?