I am writing a cross-platform SwiftUI app that needs to present a password prompt if the user wishes to "lock" the application. The lock screen should cover all views in the application until the user successfully authenticates. On iOS I'm able to do this using the fullScreenCover method like this:
.fullScreenCover(isPresented: $isLocked, content: {
ApplicationLockView(viewModel: ApplicationLockViewModel())
})
This works great. However, this method is unavailable on macOS. Is there an equivalent way of accomplishing this on macOS?
