How Apple's on-device and server foundation models power Apple Intelligence, how the Foundation Models framework works, and practical Swift examples.