metatext/ViewModels/Sources/ViewModels/AccountViewModel.swift
Justin Mazzocchi b13f4b89a8
Refactoring
2020-09-22 18:00:56 -07:00

25 lines
516 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Combine
import Foundation
import Mastodon
import ServiceLayer
public class AccountViewModel: ObservableObject {
private let accountService: AccountService
init(accountService: AccountService) {
self.accountService = accountService
}
}
public extension AccountViewModel {
var avatarURL: URL {
accountService.account.avatar
}
var note: NSAttributedString {
accountService.account.note.attributed
}
}