I have created a swift framework for distribution to private customers and its the first time I have created an iOS framework so I am very clueless about a lot of things. Is
So I actually learned more about frameworks over the past few months and also completed my framework and it turns out what I was trying to achieve could be done by deploying only the framework product under the products file.Only your declarations will be visible so your source code wont be visible unless you include those files too while distributing your framework.