There are literally 1000s of new APIs and I can only imagine what the web services, OS/kernel side and test infrastructure looks like, so I am thinking it’s in the 10-100mLOC ballpark.
Ahem, you do realize that Safari on iOS exists right? Only thing Apple is doing here is exposing the same APIs they used to implement Safari to non-Apple devs. Probably with some adjustments, but certainly not millions of lines of code.