I guess you can argue that WebKit, CUPS, Darwin, LLVM etc were open-source before Apple started using/sponsoring them (or based new software on them) and so had to continue, but Swift was a from-scratch project that was open sourced.
As for zero-knowlege encryption, iCloud Keychain is although the rest isn’t, you’re right there. Hopefully they’ll move in that direction.