Sprinkle in some deprecations to see what needs to be done with MastodonUser (IOS-192, IOS-189)

This commit is contained in:
Nathan Mattes 2023-11-23 10:26:32 +01:00
parent bf433e332f
commit 682fe27319
3 changed files with 6 additions and 0 deletions

View File

@ -33,7 +33,11 @@ class ProfileViewModel: NSObject {
// input
let context: AppContext
let authContext: AuthContext
@available(*, deprecated, message: "Replace with Account")
@Published var me: MastodonUser?
@available(*, deprecated, message: "Replace with Account")
@Published var user: MastodonUser?
let viewDidAppear = PassthroughSubject<Void, Never>()

View File

@ -9,6 +9,7 @@ import CoreData
import Foundation
/// See also `CoreDataStack.MastodonUser`, this extension contains several
@available(*, deprecated, message: "Replace with Mastodon.Entity.Account")
final public class MastodonUser: NSManagedObject {
public typealias ID = String

View File

@ -96,6 +96,7 @@ public struct RelationshipActionOptionSet: OptionSet {
}
}
@available(*, deprecated, message: "Replace with Mastodon.Entity.Relationship")
public final class RelationshipViewModel {
var disposeBag = Set<AnyCancellable>()