// // WelcomeViewModel.swift // Mastodon // // Created by Cirno MainasuK on 2021-9-15. // import Foundation import Combine import MastodonCore final class WelcomeViewModel { var disposeBag = Set() // input let context: AppContext // output let needsShowDismissEntry = CurrentValueSubject(false) init(context: AppContext) { self.context = context context.authenticationService.mastodonAuthentications .map { !$0.isEmpty } .assign(to: \.value, on: needsShowDismissEntry) .store(in: &disposeBag) } }