Swift Dependency Injection

Open-source Swift projects categorized as Dependency Injection

Top 23 Swift Dependency Injection Projects

Dependency Injection
  • Swinject

    Dependency injection framework for Swift with iOS/macOS/Linux

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • Resolver

    Swift Ultralight Dependency Injection / Service Locator framework

  • Factory

    A new approach to Container-Based Dependency Injection for Swift and SwiftUI. (by hmlongco)

  • Needle

    Compile-time safe Swift dependency injection framework

  • swift-dependencies

    A dependency management library inspired by SwiftUI's "environment."

    Project mention: Is iOS programming hard now? | /r/iOSProgramming | 2023-12-09
  • iOSSampleApp

    Sample iOS app demonstrating Coordinators, Dependency Injection, MVVM, Binding

  • Weaver

    Dependency Injection framework for Swift (iOS/macOS/Linux) (by scribd)

  • SecurePropertyStorage

    Helps you define secure storages for your properties using Swift property wrappers.

  • DITranquillity

    Dependency injection for iOS (Swift)

  • Pure

    Pure DI in Swift (by devxoul)

  • Deli

    Deli is an easy-to-use Dependency Injection(DI).

  • Locatable

    A micro-framework that leverages Swift Property Wrappers to implement the Service Locator pattern

  • DIKit

    Dependency Injection Framework for Swift, inspired by KOIN.

  • SafeDI

    Compile-time safe dependency injection in Swift

  • pilgrim

    Dependency injection for Swift (iOS, OSX, Linux). Strongly typed, pure Swift successor to Typhoon.

  • sword

    🗡️ A compile time dependency injection library for Swift (by rockname)

    Project mention: Show HN: Sword – A compile time dependency injection library for Swift | news.ycombinator.com | 2024-05-29
  • Corridor

    A Coreader-like Dependency Injection ÎĽFramework

  • Guise

    An elegant, flexible, type-safe dependency resolution framework for Swift (by Prosumma)

  • AnnotationInject

    Compile-time type safe Swift dependency injection annotations

  • ViperServices

    Simple dependency injection container for services written for iOS in swift supporting boot order

  • StoryboardBuilder

    Simple dependency injection for generating views from storyboard.

  • Syringe

    A lightweight dependency injection(DI) framework written in Swift. (by broken-bytes)

  • TinyDi

    A Lightweight Swift Dependency Injection Package

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Swift Dependency Injection discussion

Log in or Post with

Swift Dependency Injection related posts

  • Is iOS programming hard now?

    2 projects | /r/iOSProgramming | 9 Dec 2023
  • From barely a hero to a superhero?

    1 project | /r/iOSProgramming | 6 Dec 2023
  • Good Swift Repositories for Experienced Dev

    3 projects | /r/swift | 28 Jun 2023
  • Do you (not) use Dependency Injection and why?

    1 project | /r/swift | 2 Jun 2023
  • TCA state update externally

    1 project | /r/SwiftUI | 27 May 2023
  • I wrote an article about The Magic of KeyPath for Dependency Injection and how it Saved Me from Dependency Injection Hell that I faced in my current project.

    1 project | /r/swift | 17 Apr 2023
  • Queryable - A SwiftUI package that lets you trigger and await view presentations asynchronously

    4 projects | /r/SwiftUI | 14 Apr 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 1 Dec 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Dependency Injection projects in Swift? This list will help you:

Project Stars
1 Swinject 6,366
2 Resolver 2,153
3 Factory 1,930
4 Needle 1,842
5 swift-dependencies 1,614
6 iOSSampleApp 893
7 Weaver 751
8 SecurePropertyStorage 472
9 DITranquillity 423
10 Pure 377
11 Deli 135
12 Locatable 117
13 DIKit 103
14 SafeDI 97
15 pilgrim 63
16 sword 63
17 Corridor 61
18 Guise 59
19 AnnotationInject 43
20 ViperServices 6
21 StoryboardBuilder 5
22 Syringe 5
23 TinyDi 1

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

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