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.
27 lines
763 B
27 lines
763 B
![]()
2 years ago
|
//
|
||
![]()
2 years ago
|
// SportDetailCellViewModels.swift
|
||
![]()
2 years ago
|
// Lookfit
|
||
|
//
|
||
|
// Created by lemo. on 2020/4/20.
|
||
|
// Copyright © 2020 Sheldon. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import UIKit
|
||
|
|
||
![]()
2 years ago
|
class SportDetailCellViewModels: ViewModel {
|
||
![]()
2 years ago
|
|
||
|
let title = BehaviorRelay<String?>(value: nil)
|
||
|
let img = BehaviorRelay<UIImage?>(value: nil)
|
||
|
let value = BehaviorRelay<String?>(value: nil)
|
||
|
let unit = BehaviorRelay<String?>(value: nil)
|
||
|
let rightLineHidden = BehaviorRelay<Bool>(value: false)
|
||
|
|
||
|
init(title: String?, img: UIImage?, value: String?, unit: String?, rightLineHidden: Bool = false) {
|
||
|
self.title.accept(title)
|
||
|
self.img.accept(img)
|
||
|
self.value.accept(value)
|
||
|
self.unit.accept(unit)
|
||
|
self.rightLineHidden.accept(rightLineHidden)
|
||
|
}
|
||
|
}
|