Swiftpack.co - SwiftCommon/Steroids as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by SwiftCommon.
SwiftCommon/Steroids 0.0.2
@Injected is Swinject on Steroids
⭐️ 1
🕓 1 year ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/SwiftCommon/Steroids.git", from: "0.0.2")

Steroids for Swinject

Swift 5.0+ license Build Status codecov

@Injected is Swinject on Steroids.

Getting started

On first checkout you best run: $ make setup that will trigger the scripts/setup bash script to run and check the required dependencies and generate the Xcodeproj.


Injected propertyWrapper

class VeryClass {
    @Injected var someService: SomeAwesomeService
    @Injected(name: "crystal") var namedService: SomeAwesomeService

Register through Swinject Container

// Register a Service
Dealer.shared.push(name: "crystal") { _ in MagicBlues() as SomeAwesomeService }

// Remove all registrations


Swift PM

Put this in your Package.swift:

    dependencies: [
       .package(url: "https://github.com/SwiftCommon/Steroids", from: "0.0.1")
    targets: [
          name: "YourAwesomeApp",
          dependencies: ["Steroids"]


Licensed under the MIT license.


Stars: 1
Last commit: 1 year ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Related Packages

Release Notes

0.0.2 - Documentation
2 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics