Skip to content

Commit

Permalink
Make wrappedValue mutable in Inject property wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdeprit committed Nov 19, 2024
1 parent 15ae1b3 commit ea8e6b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Injector/Injector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public struct Inject<T> {
///
/// Accessing this property will return the resolved instance from `AppContainer`.
public var wrappedValue: T {
return instance
get { return instance }
set { instance = newValue }
}
}

Expand Down

0 comments on commit ea8e6b2

Please sign in to comment.