title: Settings.bundle Swift 5
body: <p>I am using the settings.bundle in swift 5 and would like to observe changes from the default settings and update the app without restarting it - what is the best way to do this?</p>
  <pre><code>        UserDefaults.standard.register(defaults: [&quot;String&quot; : &quot;Any&quot;])
          let defaultValues1 = [&quot;btn1_name&quot;: &quot;Name your Btn 1&quot;]
          UserDefaults.standard.register(defaults: defaultValues1)
          let btn1value = [&quot;btn1_onoff&quot;: true]
          UserDefaults.standard.register(defaults: btn1value)
          
          let defaultValues2 = [&quot;btn2_name&quot;: &quot;Name your Btn 2&quot;]
          UserDefaults.standard.register(defaults: defaultValues2)
          let btn2value = [&quot;btn2_onoff&quot;: true]
          UserDefaults.standard.register(defaults: btn2value)
          
  </code></pre>