mastodon-ios/Mastodon/Scene/Search/SearchViewModel.swift

26 lines
414 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
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
}
}