Apple apparently intends to launch a promised Legacy Contacts feature in the upcoming iOS 15.2 and the iPad equivalent. This will allow friends or family members to access your data after you die.
It will prevent pictures and phone numbers from being permanently locked on an iPhone or iPad if someone passes away without giving out their passcode.