Navigation link xcode IOS 16

Hello I am trying to use a navigation link to open a new view when a variable becomes true. I am not sure how to do this, I looked at the apple doc but I keep getting errors. I will add my code in below. I tried a couple different ways but I get a few errors.

@EnvironmentObject var viewModel: AuthViewModel

var body: some View {

method 1: This gives the error "Cannot convert value of type 'Binding' to expected argument type 'Bool'"

if $viewModel.didAuthUser == true{
NavigationLink {
} label: {

method 2: This gives the error that the formate was depreciated in IOS 16

NavigationLink(destination: ProfilePhotoSelectorView(), isActive:
$viewModel.didAuthUser, label: {})