Created
May 4, 2021 20:55
-
-
Save scott-lydon/f1f624ff841457c3a332dad283063c53 to your computer and use it in GitHub Desktop.
Binding False positive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct CreateAccountViewModel { | |
var image: Image = Image("IntroImage") | |
var accentText: String = "Choose Account type" | |
var choosePathVM: ChoosePathViewModel = ChoosePathViewModel(index: 0, explanations: [.employee, .business]) | |
var buttonImage: Image = Image(systemName: .rightArrowLine) | |
var spacerHeight: CGFloat = 40 | |
func sendHeader() { headerAction?(choosePathVM.current) } | |
var currentHeader: HeaderBody { choosePathVM.current } | |
var employeeDestination: Bool { choosePathVM.current.header == HeaderBody.employee.header } | |
var formModel: SignupFormViewModel { employeeDestination ? .employee : .business} | |
var authViewModel: AuthViewModel { employeeDestination ? .employeeForm : .businessForm } | |
var headerAction: HeaderBodyAction? = nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment