2021-03-31 08:28:40 +02:00
|
|
|
//
|
|
|
|
// SearchViewModel.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
|
|
|
// Created by sxiaojian on 2021/3/31.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import Combine
|
2021-03-31 08:48:34 +02:00
|
|
|
import MastodonSDK
|
|
|
|
import UIKit
|
2021-03-31 08:28:40 +02:00
|
|
|
|
|
|
|
final class SearchViewModel {
|
|
|
|
|
|
|
|
var disposeBag = Set<AnyCancellable>()
|
|
|
|
|
2021-03-31 08:48:34 +02:00
|
|
|
|
2021-03-31 08:28:40 +02:00
|
|
|
let context: AppContext
|
2021-03-31 08:48:34 +02:00
|
|
|
// input
|
|
|
|
let username = CurrentValueSubject<String, Never>("")
|
2021-03-31 08:28:40 +02:00
|
|
|
|
|
|
|
init(context: AppContext) {
|
|
|
|
self.context = context
|
|
|
|
}
|
|
|
|
}
|