Skip to content

Releases: ivlevAstef/DITranquillity

Support swift 5.0

26 Mar 16:28
Compare
Choose a tag to compare

Support SwiftPM

25 Feb 10:17
Compare
Choose a tag to compare

Custom scopes

12 Feb 11:33
Compare
Choose a tag to compare
  • Remove scan
  • Support custom/user scopes. ru
  • Improve description for Component

Improve speed and fatal

16 Dec 05:51
Compare
Choose a tag to compare
  • Improve speed - remove more operation as? and is.
  • Fully remove force unwrap from library - now crashes only use fatalError()`

Support SwiftLazy 1.1.0 - Provider with arguments

27 Sep 07:14
Compare
Choose a tag to compare

Support provider with arguments

Support container Hierarchy

26 Sep 13:14
Compare
Choose a tag to compare

Support container Hierarchy

Fix swift 4.2 optional type bugs

18 Sep 11:38
Compare
Choose a tag to compare

Support carthage

03 Sep 06:07
Compare
Choose a tag to compare

Support swift 4.2

31 Aug 12:20
Compare
Choose a tag to compare

Support swift 4.2

Support injected with arguments

20 Aug 06:40
Compare
Choose a tag to compare

Support injected with arguments at any depth.
Example:

    container.register{ "injection" as String }
    container.register{ Class(intParam: arg($0), stringInject: $1)) }
      .injection(\.argInject) { arg($0) }

    container.extensions(for: Class.self)?.setArgs(111, ["H","e","l","l","o"])

    let obj: Class = *container
    // obj.intParam == 111
    // obj.stringInject == "injection"
    // obj.argInject.joined() == "Hello"

where Class:

class Class
{
  let intParam: Int
  let stringInject: String
  var argInject: [String] = []

 init(intParam: Int, stringInject: String) {
    self.intParam = intParam
    self.stringInject = stringInject
  }
}