Open L1mm0n opened 1 year ago
The problem is with this line - isActive: showingLoginScreen != nil ? $showingLoginScreen! : nil
Can you tell me exactly why? Because it will say showingLogingScreen as a bool, that why I do that line .
isActive:
requires Binding<Bool>
but $showingLoginScreen
would produce Binding<Bool?>
so ternary cannot be used here, the binding needs to be constructed explicitly using Binding(get:set:)
initializer or drop optionality from showingLoginScreen
declaration.
Description
Expected behavior I excepted it would navigate to the welcome page after entering the write username and password but it has this error.