title: Sharing UserDefaults between extensions
body: <p>Creating a Today widget and I am using <code>UserDefaults(suiteName:)</code> to persist some data. In the main application I am using <code>UserDefaults.standard()</code>. This can't be read (or can it?) by the extension which is why I use the <code>suiteName:</code> constructor.</p>
  <p>Data that user persist to <code>UserDefaults.standard()</code> in the main app needs to be available in the extension.</p>
  <p>At this time I am persisting to both so that the values can be shared</p>
  <pre><code> UserDefaults.standard().set:...forKey:...
   UserDefaults(suiteName:...)().set:...forKey:...
   ...
  </code></pre>
  <p>Question is should I drop <code>UserDefaults.standard()</code> all together and just use <code>UserDefaults(suiteName:)</code> in my application, or is this bad practice and if so why?</p>
  <p>Edit: I am using an App group container. For clarification I am asking should I just replace <code>standard()</code> with <code>suiteName:</code>  throughout my project?</p>