I don't even know how it works, to be honest. Some devs add the actual button while others add the "swipe down" action on the code which triggers the same thing, but it is in fact possible to do one or the other.