Apple is improving privacy in iOS 18, introducing a feature that allows apps to be locked or hidden, which makes them inaccessible without a Face ID scan.
If someone is using your phone and you've locked an app, when they try to open that app, they'll see a popup that says it can't be accessed without secondary authentication. Locking an app can be done by long pressing on it and selecting the Require Face ID option (or Touch ID on the iPhone SE).
Not all apps can be locked, with Apple not providing an option for innocuous apps like Maps, Clock, Calculator, and Stocks, but almost every other app can be locked, including third-party apps. When you lock an app, you have the option to hide it as well, which moves it into a locked, hidden apps folder that requires authentication to open.
Locked or hidden apps are not only unable to be opened, but also hidden from search, notifications, and other places across the operating system. Enabling a lock on an app also shows the apps that have access to it, such as apps that are able to write images to the Photos app. Hiding an app means that you will not receive incoming notifications or calls from it, and it will only be available from a "Hidden" folder in the App Library.
If you want to turn off the locking feature, you can long press on an app icon and choose the "Don't Require Face ID" option. Turning the lock on and off requires a Face ID scan, so it can't be turned off without your knowledge. Locking and hiding apps is also a feature that works on the iPad.