Apple recently added two new features to their latest iOS 15 operating system that will help you and someone you trust access your Apple account and mobile device should you forget your password or when you die.
Setting up a Recovery Contact now will allow someone you know and trust help you regain access to your Apple/iCloud account or device should you forget your account password or device passcode.
Adding a Legacy Contact now will allow someone you know and trust access data such as your photos, messages and notes after your death.
For more details and instructions, see the Apple help articles below. If you need help with setup you may contact your tech.
Set up an account recovery contact
How to add a Legacy Contact for your Apple ID
Also read: Now’s the time to decide what to do with your online accounts when you pass away.