Assigning packages and memberships | Swift