title: RxSwift : BehaviorRelay in place of Variable usage
body: <p>I'm new to RxSwift and reading about subjects, I tried <code>Variable</code> Subject. Which in turns giving Warning in console</p>
  
  <pre><code>ℹ️ [DEPRECATED] `Variable` is planned for future deprecation. Please consider `BehaviorRelay` as a replacement. Read more at: https://git.io/vNqvx
  </code></pre>
  
  <p>Earlier I have declared <code>Variable</code> like this</p>
  
  <pre><code>var searchItems = Variable&lt;[MyClass]&gt;([])
  </code></pre>
  
  <p>So i have done basic array operations from it's property called <code>value</code> as it was <code>get set</code> property like</p>
  
  <pre><code> 1. self.searchItems.value.removeAll()
   2. self.searchItems.value.append(items)
   3. self.searchItems.value = items
  </code></pre>
  
  <p>Now After getting warning i changed it to <code>BehaviorRelay</code> like</p>
  
  <pre><code>var searchItems = BehaviorRelay&lt;[MyClass]&gt;(value: [])
  </code></pre>
  
  <p>So I got error that <strong>value is get property only</strong>.</p>
  
  <p>I googled alot but can't get suitable explanations for Array operations.</p>
  
  <p>I only got a code <code>self.searchItems.accept(items)</code> which i really don't know what it exactly do add fresh items or append.</p>
  
  <p>I needed how all 4 operations will be performed when using <code>BehaviorRelay</code>?</p>