Kurdtvs-Live-Kurdish-TV-Kur.../Mastodon/Scene/Profile/ProfileViewController+UserP...

28 lines
588 B
Swift

//
// ProfileViewController+UserProvider.swift
// Mastodon
//
// Created by MainasuK Cirno on 2021-4-1.
//
import Foundation
import Combine
import CoreDataStack
import UIKit
extension ProfileViewController: UserProvider {
func mastodonUser(for cell: UITableViewCell?) -> Future<MastodonUser?, Never> {
return Future { promise in
promise(.success(nil))
}
}
func mastodonUser() -> Future<MastodonUser?, Never> {
return Future { promise in
promise(.success(self.viewModel.mastodonUser.value))
}
}
}