i want to ask about using modular architecture for UIKit. As far as i know, it can be reached whether using Swift Package or Target Framework. For example for dependency injection there's Swinject library for Swift Package, or just some customization using Target Framework. However, after you inject your dependecies to the AppDelegate and create some view, inside your Swift Package/Target Framework now is no longer can access the AppDelegate.swift file to be called inside of them. Why do i wanted to get the AppDelegate?, is because if you're using CoreData, you often need a reference to the AppDelegate. Is there any solution?. I've tried adding the dependencies inside the framework for the MainApp, but it's gonna be a circular dependencies, hence it can't. Thankyou
Asked
Active
Viewed 35 times
-2
-
1You don’t need AppDelegate for Core Data – Joakim Danielson Aug 06 '23 at 08:33