ivlevAstef / DITranquillity

Dependency injection for iOS (Swift)
MIT License
421 stars 32 forks source link

ImplicitlyUnwrappedOptional types cannot be found in Swift 4.1 #116

Closed vchmezov closed 6 years ago

vchmezov commented 6 years ago

Hi!

My app fails to validate container under swift 4.1 due to the presence of ImplicitlyUnwrappedOptional properties. DITranquility just cannot find corresponding types.

I found following lines at Helpers.swift:

#if swift(>=4.1)
#else
extension ImplicitlyUnwrappedOptional: SwiftTypeGetter {
  static var type: DIAType { return Wrapped.self }
}
#endif

When I remove compilation conditions it works as it did under swift 4.0

Was this conditions set by mistake?

ivlevAstef commented 6 years ago

Hi!

Yes @Nekitosss fix this bug soon, and I will release today evening.

But is worth already now to start thinking about - https://github.com/apple/swift-evolution/blob/master/proposals/0054-abolish-iuo.md

ivlevAstef commented 6 years ago

Fixed in version 3.2.3