title: Saving array to CoreData Swift
body: <p>I would like to save this kind of <code>arrays</code> with <code>Core Data</code>:</p>
  
  <pre><code>let crypto1 = Cryptos(name: "Bitcoin", code: "bitcoin", symbol: "BTC", placeholder: "BTC Amount", amount: "0.0")
  let crypto2 = Cryptos(name: "Bitcoin Cash", code: "bitcoinCash", symbol: "BCH", placeholder: "BCH Amount", amount: "0.0")
  </code></pre>
  
  <p>Is that even possible? </p>
  
  <p>I know I can create an array to save like that...</p>
  
  <pre><code>let name = "Bitcoin"
  let code = "bitcoin"
  let symbol = "BTC"
  let placeholder = "BTC Amount"
  let amount = "0.0"
  let cryptos = CryptoArray(context: PersistenceService.context)
  cryptos.name = name
  cryptos.code = code
  cryptos.symbol = symbol
  cryptos.placeholder = placeholder
  cryptos.amount = amount
  crypto.append(cryptos)
  PersistenceService.saveContext()
  </code></pre>
  
  <p>...but this seems pretty inconvenient when a theoretical infinite number of arrays will be created by the user.</p>
  
  <p>What would be the best way for me to save data, load it, edit it and delete it?</p>