Kurdtvs-Live-Kurdish-TV-Kur.../Mastodon/Scene/Search/SearchViewModel.swift

31 lines
556 B
Swift
Raw Normal View History

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
// input
2021-03-31 13:29:54 +02:00
let context: AppContext
// output
let searchText = CurrentValueSubject<String, Never>("")
var recommendHashTags = [Mastodon.Entity.Tag]()
var recommendAccounts = [Mastodon.Entity.Account]()
2021-03-31 08:28:40 +02:00
init(context: AppContext) {
self.context = context
2021-03-31 13:29:54 +02:00
2021-03-31 08:28:40 +02:00
}
}