Use settings.bundle of custom framework in application

210 Views Asked by At

I am creating a framework for iOS applications. I need some configurable parameters from end users at run time like key, specific set of characters or something else.

These things will be used in my framework not in the application. So I have created Settings.bundle for my framework and I want that whosoever uses this framework will have in-app settings that I desire and have created in that framework project.

Is there a way I can do this?

1

There are 1 best solutions below

4
manikal On

It's up to hosting app to include such params in Settings. There is no way to enforce the app using your framework to include your params in app settings. From the framework perspective config params should be included in public API. For example the key should be argument to your framework initializer.