A feature in iOS18 allows you to lock apps. Please refer to Apple's page for details on how to unlock the app.
How to
- Update to iOS18 from the Settings app on the home screen
- Touch and hold the TimeTree app icon until a menu opens
- Tap “Require Passcode"