You can view the hidden photos in the Utilities section of the new Photos app in iOS 18. Once you're in the Hidden photos album, you can unhide the required photos and videos using the "..." ellipsis ...
MacOS allows you to hide files and folders by adding a simple period (.) to the file name. This can be handy if you want to share your MacBook with others and hide personal folders that other users ...