A Simple Implementation of Remote Configuration For SwiftUI

A Simple Implementation of Remote Configuration For SwiftUI

First of all, a quick definition of Remote Configuration: It is a way to customize the behaviour of a desired system based on certain parameters that are stored on a remote location.

[…]

Here we have the JSON file we are going to use to configure our application.  

[…]

This is the ConfigProvider class ready to be consumed by our SwiftUI application:

[…]

Finally, we will get to implement the real remote configuration loader, which will only need to fetch the configuration from wherever you stored your remote configuration JSON file

[…]