Skip to content
Josh Wright edited this page Jan 14, 2021 · 2 revisions

Inject

@propertyWrapper public class Inject<Service>

Initializers

init()

Create the property wrapper with no identifier.

public init()

init(_:)

Create the property wrapper with an identifier.

public init<H: Hashable>(_ identifier: H)

Parameters

  • identifier: The identifier of the service to load.

Properties

wrappedValue

An instance of the service this property wrapper is injecting.

var wrappedValue: Service
Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally