How to store login state in SwiftUI?

Hey everyone,
What’s the best way to keep a user logged in using SwiftUI? Just looking for a simple and safe method. Appreciate any pointers!