Foxconn does assembly and that is not a big cost of an iphone [0]. Like literally just a fraction compared to American IP, Taiwan CPUs, or Japanese cameras and the latter are all much harder to move compared to assembly.
Whatever the case is, Apple took their sweet time making changes. Microsoft, Google and even Facebook pulled out of China years ago, and Apple is acting like a storied history of human rights abuses is news to them.
> [...], Google and even [...] pulled out of China years ago
Wasn't the Pixel 6 assembled by Foxconn? And the upcoming Pixel 7 / foldables apparently also going to be assembled by Foxconn? That's not pulling out...