title: Save array of images with Realm in swift
body: <p>okay, i have an app with 3 view controllers and in 2 of them i have 5 arrays of images. what i want to do is save each array of images using realm. the arrays are mutable and the user adds the images to the array of their choosing in vc1 and can send them to the arrays in vc2, but im not sure if i can just replace (in vc1) 
  this: </p>
  
  <pre><code>var array: [UIImage] = [] {
  
      didSet{
  
          cView1.reloadData()
  
  
      }
  }
  </code></pre>
  
  <p>with This:</p>
  
  <pre><code>dynamic var array: [UIImage] = [] {
  
      didSet{
  
          cView1.reloadData()
  
  
      }
  }
  </code></pre>
  
  <p>i am also getting this error when i try to inherit RLMObject.
  "multiple inheritance from classes uiviewcontroller and RLMObject"
  here is my code </p>
  
  <pre><code> class CViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UICollectionViewDelegate, UICollectionViewDataSource, CDelegate , RLMObject 
  </code></pre>
  
  <p>im fairly new to ios developing so any little bit helps thanks in advance</p>