// // ScheduleViewedVM.swift // QuickLocation // // Created by 八条 on 2026/6/26. // import RxSwift import RxCocoa import RxDataSources import ObjectMapper struct ScheduleViewedViewModel { struct Output { var sectionedItems: Observable<[ViewedListSectionModel]> } let output: Output private let sectionedItems = PublishSubject<[ViewedListSectionModel]>() lazy var cellAction: Action = { this in return Action { model in return .empty() } }(self) func loadViewedData(_ list: [ViewedModel]) { sectionedItems.onNext(list.mapSection()) } // MARK: - init init() { output = Output( sectionedItems: sectionedItems ) } }