How to use .fullScreenCover(isPresented: $viewModel.loginSuccessful) with a non bool value – Ios swift
I've got a view that uses the following view modifier: .fullScreenCover(isPresented: $viewModel.user) { This will generate a error: Cannot convert value of type 'Binding<User?>' to expected argument type 'Binding<Bool>' When the user taps the login button, it will trigger a…