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.
26 lines
500 B
26 lines
500 B
1 year ago
|
//
|
||
1 year ago
|
// HealthCellViewModels.swift
|
||
1 year ago
|
// Lookfit
|
||
|
//
|
||
|
// Created by Sheldon on 2021/9/21.
|
||
|
// Copyright © 2021 Sheldon. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import UIKit
|
||
|
|
||
1 year ago
|
class HealthCellViewModels: ViewModel {
|
||
1 year ago
|
|
||
|
/// 健康类型
|
||
|
var type: HealthType = .sleep
|
||
|
|
||
|
let value = BehaviorRelay<String>(value: "0")
|
||
|
let target = BehaviorRelay<String>(value: "")
|
||
|
let progress = BehaviorRelay<Float>(value: 0)
|
||
|
|
||
|
init(type: HealthType) {
|
||
|
super.init()
|
||
|
self.type = type
|
||
|
}
|
||
|
|
||
|
}
|