I can swipe with Google gboard faster than I can type on a real keyboard (and I'm a programmer and can type), but I tried that google keyboard ("Gboard") on my iPhone and it was awful - slow to respond, lots of mistakes. (Until fairly recently, Apple didn't allow third-party keyboards at all, and iPhone still doesn't allow third-party keyboards access to all the API's, so they're a bit hamstrung). (Note: on GrapheneOS, I block Gboard from all network access, so it doesn't learn from my mistakes or new words, but it's still light years beyond running it on iPhone.)
So it might be a platform-specific thing. I definitely find typing on an iPhone to be rather painful, but swiping on Android is very, very fast.