hmlongco / Factory

A new approach to Container-Based Dependency Injection for Swift and SwiftUI.
MIT License
1.93k stars 116 forks source link

Fix Swift 6 compatibility #209

Closed NachoSoto closed 5 months ago

NachoSoto commented 5 months ago

See #190.

Factory is not compatible with Swift 6, so this makes that explicit. Without this, apps compiling against Factory when using Swift 6 will try to compile it with that and fail.

hmlongco commented 5 months ago

There's more to it than this. Working on it. Optional cached and shared types are also broken in 6.

NachoSoto commented 5 months ago

There's more to it than this

You mean more errors?

hmlongco commented 5 months ago

Yep, going to close this as more work was needed. You can see the changes in the swift6 branch.

NachoSoto commented 5 months ago

Sure I appreciate it. This was just the minimum work to at least be able to compile, but looking forward to a more correct solution 👍🏻