List of the official iOS keyboards’ heights (and how to calculate them)

Recently I have been working on a custom keyboard extension.

I wanted it to be of the same size of the original iOS keyboard. I noticed that almost all of the devices have different keyboard heights and I thought that affected the way the keyboard appeared. But here’s the plot twist: the view that contains the letters is always of the same size!

This means that the height difference comes from the bottom safe area.