Creating and tracking invoices | Swift