title: Updating string array from NSUserDefaults
body: <p>I have a variable</p>
  
  <pre><code>var savedSearchItems: [String] {
      get {
          return UserDefaults.standard.stringArray(forKey: keySavedSearchItems) ?? []
      }
      set {
          UserDefaults.standard.setValue(savedSearchItems, forKeyPath: keySavedSearchItems)
      }
  }
  </code></pre>
  
  <p>Is this a correct way to update my array?</p>
  
  <pre><code>case .saveSearchItem(let item):
          var temp = st.savedSearchItems
          print(temp) //always prints "[]"
          temp.append(item)
          st.savedSearchItems = temp
  </code></pre>