Slide 12
Slide 12 text
let input = Observable
.of(scanCamera.barcodeNumber.map { ProactiveExhibit.Input.ean($0) },
exhibitAdapter.map { ProactiveExhibit.Input.exhibit(BulkIncludeExhibit(exhibits: [$0])) }
)
.merge()
.asDriver(onErrorDriveWith: .empty())
let removeExhibitsInput = Observable
.merge(GlobalObservable.removeExhibitsForExhibitCamera, removeExhibitAdapter)
.asDriver(onErrorDriveWith: .empty())
let replaceExhibitInput = replaceExhibitAdapter.asDriver(onErrorDriveWith: .empty())
viewModel = ExhibitCameraViewModel(input: input,
removeExhibitsInput: removeExhibitsInput,
replaceExhibitInput: replaceExhibitInput)
Χϝϥ͔Βͬͯ͘Δ&"/ίʔυͷετϦʔϜͱɺ
λΠτϧը໘͔Β͞ΕΔσʔλͷετϦʔϜΛNFSHF
ˠ%SJWFS1SPBDUJWF&YIJCJU*OQVU