├── .gitignore ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── Package.swift ├── README.md ├── Sources └── SwiftDI │ ├── DIComponentContext.swift │ ├── DIComponentManager.swift │ ├── DIContainer.swift │ ├── DIObject.swift │ ├── DSL │ ├── AnyDIPart.swift │ ├── DIBuilder.swift │ ├── DIGroup.swift │ ├── DIObject+DIPartBuildable.swift │ ├── DIPart+DIPartBuildable.swift │ ├── DIPart.swift │ ├── DIPartBuildable.swift │ ├── DIRegister.swift │ ├── DITuplePart.swift │ ├── EmptyDIPart.swift │ └── Never.swift │ ├── Inject.swift │ ├── Resolver.swift │ ├── SwiftDI.swift │ ├── SwiftUI │ ├── EnvironmentInject.swift │ ├── EnvironmentObservedInject.swift │ └── View+SwiftDI.swift │ └── Utils │ ├── Extensions.swift │ ├── InjectableProperty.swift │ └── Utils.swift ├── SwiftDI.podspec ├── SwiftDIDemo ├── .gitignore ├── Podfile ├── Podfile.lock ├── SwiftDIDemo.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── swiftpm │ │ │ │ └── Package.resolved │ │ └── xcuserdata │ │ │ └── v.a.prusakov.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── v.a.prusakov.xcuserdatad │ │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ ├── SwiftDIDemo.xcscheme │ │ └── xcschememanagement.plist ├── SwiftDIDemo.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcuserdata │ │ ├── v.a.prusakov.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ └── vladislavprusakov.xcuserdatad │ │ ├── UserInterfaceState.xcuserstate │ │ └── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist └── SwiftDIDemo │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json │ ├── Base.lproj │ └── LaunchScreen.storyboard │ ├── Home │ ├── Assembly │ │ └── HomeAssembly.swift │ ├── View │ │ └── HomeView.swift │ └── ViewModel │ │ └── HomeViewModel.swift │ ├── Info.plist │ ├── Preview Content │ └── Preview Assets.xcassets │ │ └── Contents.json │ ├── SceneDelegate.swift │ └── Services │ ├── Network │ ├── NetworkService.swift │ └── NetworkServiceInput.swift │ └── ServicesAssembly.swift ├── Tests ├── LinuxMain.swift └── SwiftDITests │ ├── SwiftDITests.swift │ └── XCTestManifests.swift └── fastlane └── Fastfile /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | /xcuserdata 6 | /.swiftpm 7 | /Pods -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/LICENSE -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Package.swift -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/README.md -------------------------------------------------------------------------------- /Sources/SwiftDI/DIComponentContext.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DIComponentContext.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DIComponentManager.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DIComponentManager.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DIContainer.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DIContainer.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DIObject.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DIObject.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/AnyDIPart.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/AnyDIPart.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/DIBuilder.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/DIBuilder.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/DIGroup.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/DIGroup.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/DIObject+DIPartBuildable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/DIObject+DIPartBuildable.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/DIPart+DIPartBuildable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/DIPart+DIPartBuildable.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/DIPart.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/DIPart.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/DIPartBuildable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/DIPartBuildable.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/DIRegister.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/DIRegister.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/DITuplePart.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/DITuplePart.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/EmptyDIPart.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/EmptyDIPart.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/DSL/Never.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/DSL/Never.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/Inject.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/Inject.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/Resolver.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/Resolver.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/SwiftDI.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/SwiftDI.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/SwiftUI/EnvironmentInject.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/SwiftUI/EnvironmentInject.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/SwiftUI/View+SwiftDI.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/SwiftUI/View+SwiftDI.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/Utils/Extensions.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/Utils/Extensions.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/Utils/InjectableProperty.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/Utils/InjectableProperty.swift -------------------------------------------------------------------------------- /Sources/SwiftDI/Utils/Utils.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Sources/SwiftDI/Utils/Utils.swift -------------------------------------------------------------------------------- /SwiftDI.podspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDI.podspec -------------------------------------------------------------------------------- /SwiftDIDemo/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | /.swiftpm 6 | /Pods -------------------------------------------------------------------------------- /SwiftDIDemo/Podfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/Podfile -------------------------------------------------------------------------------- /SwiftDIDemo/Podfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/Podfile.lock -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcodeproj/project.xcworkspace/xcuserdata/v.a.prusakov.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcodeproj/project.xcworkspace/xcuserdata/v.a.prusakov.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcodeproj/xcuserdata/v.a.prusakov.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcodeproj/xcuserdata/v.a.prusakov.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcodeproj/xcuserdata/v.a.prusakov.xcuserdatad/xcschemes/SwiftDIDemo.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcodeproj/xcuserdata/v.a.prusakov.xcuserdatad/xcschemes/SwiftDIDemo.xcscheme -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcodeproj/xcuserdata/v.a.prusakov.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcodeproj/xcuserdata/v.a.prusakov.xcuserdatad/xcschemes/xcschememanagement.plist -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcworkspace/xcuserdata/v.a.prusakov.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcworkspace/xcuserdata/v.a.prusakov.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcworkspace/xcuserdata/vladislavprusakov.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcworkspace/xcuserdata/vladislavprusakov.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo.xcworkspace/xcuserdata/vladislavprusakov.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo.xcworkspace/xcuserdata/vladislavprusakov.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/AppDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/AppDelegate.swift -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Assets.xcassets/Contents.json -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Base.lproj/LaunchScreen.storyboard -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Home/Assembly/HomeAssembly.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Home/Assembly/HomeAssembly.swift -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Home/View/HomeView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Home/View/HomeView.swift -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Home/ViewModel/HomeViewModel.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Home/ViewModel/HomeViewModel.swift -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Info.plist -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Preview Content/Preview Assets.xcassets/Contents.json -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/SceneDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/SceneDelegate.swift -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Services/Network/NetworkService.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Services/Network/NetworkService.swift -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Services/Network/NetworkServiceInput.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Services/Network/NetworkServiceInput.swift -------------------------------------------------------------------------------- /SwiftDIDemo/SwiftDIDemo/Services/ServicesAssembly.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/SwiftDIDemo/SwiftDIDemo/Services/ServicesAssembly.swift -------------------------------------------------------------------------------- /Tests/LinuxMain.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Tests/LinuxMain.swift -------------------------------------------------------------------------------- /Tests/SwiftDITests/SwiftDITests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Tests/SwiftDITests/SwiftDITests.swift -------------------------------------------------------------------------------- /Tests/SwiftDITests/XCTestManifests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/Tests/SwiftDITests/XCTestManifests.swift -------------------------------------------------------------------------------- /fastlane/Fastfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteCode/SwiftDI/HEAD/fastlane/Fastfile --------------------------------------------------------------------------------