The second beta of iOS 15.2 that was released to developers today allows you to assign a "Legacy Contact" that can access data from your account after your death.
Legacy Contact ● Add someone you trust Choose someone you trust to have access to data from your account after your death.
● Share your access key Your legacy contact will need to provide an access key and a copy of your death certificate to access data from your account.
● Pass down your digital legacy Pass down your photos, videos, notes, documents, personal information, and more to the people you love.