Apple has been granted 20 new patents by the US Patent and Trademark Office.