You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
703 B

//
// HomeTabBarViewModel.swift
// Lookfit
//
// Created by lemo. on 2020/3/7.
// Copyright © 2020 Sheldon. All rights reserved.
//
import Foundation
import RxCocoa
import RxSwift
class HomeTabBarViewModel: ViewModel {
let tabBarItems: [HomeTabBarItem] = [.health, .sport, .device, .mine]
override init() {
super.init()
}
func viewModel(for tabBarItem: HomeTabBarItem) -> ViewModel {
switch tabBarItem {
// case .health: return HealthViewModels()
case .health: return HealthHomeViewModels()
case .sport: return SportViewModels()
case .device: return DeviceViewModels()
case .mine: return MineViewModel()
}
}
}