Swinject is a lightweight dependency injection framework for Swift. Dependency injection (DI) is a software design pattern that implements Inversion of Control (IoC) for resolving dependencies. In the pattern, Swinject helps your app split into loosely-coupled components, which can be developed, tested, and maintained more easily. Swinject is powered by the Swift generic type system and first-class functions to define the dependencies of your app simply and fluently. Services must be registered to a container before they are used. The typical registration approach will differ depending on whether you are using SwinjectStoryboard or not.

Features

  • Pure Swift Type Support
  • Initializer/Property/Method Injections
  • Initialization Callback
  • Object Scopes as None (Transient), Graph, Container (Singleton) and Hierarchy
  • Support of both Reference and Value Types
  • Self-registration (Self-binding)

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Swinject

Swinject Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Swinject!

Additional Project Details

Operating Systems

Apple iPhone

Programming Language

Swift

Related Categories

Swift Frameworks, Swift User Interface (UI) Software

Registered

2023-05-26