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.
25 lines
500 B
25 lines
500 B
// |
|
// HealthCellViewModels.swift |
|
// Lookfit |
|
// |
|
// Created by Sheldon on 2021/9/21. |
|
// Copyright © 2021 Sheldon. All rights reserved. |
|
// |
|
|
|
import UIKit |
|
|
|
class HealthCellViewModels: ViewModel { |
|
|
|
/// 健康类型 |
|
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 |
|
} |
|
|
|
}
|
|
|