im stucked with this situation
This is the view raidobuttons and label are inside of a stackview
var radioButton: RadioButton = RadioButton(duration: 0).usingAutoLayout()
var radioButtonNo: RadioButton = RadioButton(duration: 0).usingAutoLayout()
let lblYes: UILabel = UILabel().usingAutoLayout()
let lblNo: UILabel = UILabel().usingAutoLayout()
The model im working with input and output, but i don“t know if i should set the control on viewmodel or in controller
and whats the sequence?
Model:
struct Input {
let trigger: Driver<Void>
let viewWillAppear: Driver<Void>
let callingCodeTap: Driver<Void>
let yesTap: Driver<Void>
let phoneNumber: Driver<String>
let callingCodeDidBeginEditing: Driver<Void>
let phoneNumberDidEndEditing: Driver<Void>
let actionBtnTap: Driver<Void>
}
struct Output {
let triggered: Driver<Void>
let viewWillAppear: Driver<Void>
let callingCodeTapped: Driver<Country>
let yesTapped: Driver<Void>
let country: Driver<Country>
let phoneNumber: Driver<(Bool, Phone)?>
let callingCodeDidBeginEditing: Driver<Void>
let phoneNumberDidEndEditing: Driver<Void>
let actionBtnTapped: Driver<Void>
let error: Driver<IBANError>
}
And finally the controler
output
.yesTapped
.do(onNext: { print("test")})