I have built two frameworks in swift, let's call them CoreFramework and MyFramework
MyFramework has a dependency to CoreFramework and uses some of CoreFramework's classes, structs and enums in its public methods, like this for example:
public func fetchData() -> CoreStruct
I have set up a podspec for both Frameworks and I can use MyFramework as a pod in my project. In my project I would write something like:
let result = fetchData()
This compiles and Xcode even gives me the right type when I alt+click the variable, but if I want to explicitly specify the type of result like this:
let result: CoreStruct = fetchData()
I get a compiler error and I have to import CoreFramework
What do I have to do, to be able to explicitly use things like CoreStruct in my project, without having to import the underlying framework?