Here’s How Apple Is Closing the Gap With Samsung