As early as 20 14, Apple applied for this patent. Apple's patent contains liquid metal, and liquid metal alloy materials are used as pressure sensors.
It is to let the home button improve the durability and reliability of components on the one hand, and also make iOS devices slimmer.