title: Background timer in swift
body: <p>I am trying to make a system in which my app will add a gem every 30 minutes. I would also want it to run in background so that when the user terminated the app, the gem will still spawn every 30 minutes.</p>
  
  <p>I don't know where to start and what to use. So please help, thanks in advance.</p>