title: Adding Objects to single Realm File
body: <p>Before I begin here is a bit a background for you all so your possible answers won't go beyond my comprehension level:
  1. I'm only jolt starting to learn swift and is still learning the in and outs of both realm and Xcode.
  2. My only OOP experience has been with java, and at that very low.</p>
  
  <p>So here is my issue:</p>
  
  <p>I'm trying to make a single realm file hold an entire list of "user profile" data(ie. name, age, email). I'm attempting to do this by allowing an IBAction button to cause an object to be saved to the realm file as shown below</p>
  
  <pre><code>@IBAction func signUpButton(_ sender: UIButton) {
  
      let realm = try! Realm()
  
  
  
      try! realm.write {
  
      user.userName = userNameTextField.text!
      user.passWord = passWordTextField.text!
      user.email = emailTextField.text!
      user.name = fullNameTextField.text!
      user.age = ageTextField.text!
  
      profile.person.append(user)
  
  
      realm.add(profile)
  
      }
  }
  </code></pre>
  
  <p>The only problem here is that it's not adding object but instead updating the one that was created before, can anyone tell me how I can accomplish this using an IBAction Button?</p>