jamesmontemagno / SettingsPlugin

Read and Write Settings Plugin for Xamarin and Windows
MIT License
324 stars 80 forks source link

Feature, iOS: Custom Defaults Name #92

Closed kspearrin closed 7 years ago

kspearrin commented 7 years ago

Any chance of having an option on iOS added so that we can specify the default NSUserDefaults name? For example, if sharing settings with an app extension through a group this has to be set to the group name.

I see in v3.0.0 you added the ability to pass a fileName which can be done on a per call basis, but it would be nice to specify it during start up and forget about it.

For now I have to roll my own custom implementation of ISettings on iOS to get this behavior.

See:

Thanks.

jamesmontemagno commented 7 years ago

No plans on implementing this as it is already there, just always pass in the fileName. The default is standard NSUserDefaults.