mastodon-ios/Mastodon/Scene/Profile/ProfileViewController+UserP...

28 lines
588 B
Swift
Raw Normal View History

//
// ProfileViewController+UserProvider.swift
// Mastodon
//
// Created by MainasuK Cirno on 2021-4-1.
//
import Foundation
import Combine
import CoreDataStack
import UIKit
extension ProfileViewController: UserProvider {
2021-05-06 12:03:58 +02:00
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))
}
}
}