Add patch for swift