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.
32 lines
543 B
32 lines
543 B
![]()
2 years ago
|
//
|
||
|
// viewModel.swift
|
||
![]()
1 year ago
|
// FireBoltt
|
||
![]()
2 years ago
|
//
|
||
|
// Created by lemo. on 2020/3/7.
|
||
|
// Copyright © 2020 Sheldon. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
import RxSwift
|
||
|
import RxCocoa
|
||
|
|
||
|
protocol ViewModelType {
|
||
|
associatedtype Input
|
||
|
associatedtype Output
|
||
|
|
||
|
func transform(input: Input) -> Output
|
||
|
}
|
||
|
|
||
|
class ViewModel: NSObject {
|
||
|
|
||
|
deinit {
|
||
|
logDebugs("\(type(of: self)): Deinited")
|
||
|
logResourcesCountss()
|
||
|
#if DEBUG
|
||
|
logDebugs("RxSwift resources count: \(RxSwift.Resources.total)")
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|