mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-08 06:42:04 +01:00
44 lines
778 B
Swift
44 lines
778 B
Swift
|
//
|
||
|
// ShareViewModel.swift
|
||
|
// MastodonShareAction
|
||
|
//
|
||
|
// Created by MainasuK Cirno on 2021-7-16.
|
||
|
//
|
||
|
|
||
|
import os.log
|
||
|
import Foundation
|
||
|
import Combine
|
||
|
import CoreData
|
||
|
import CoreDataStack
|
||
|
import MastodonSDK
|
||
|
import SwiftUI
|
||
|
import UniformTypeIdentifiers
|
||
|
import MastodonAsset
|
||
|
import MastodonLocalization
|
||
|
import MastodonUI
|
||
|
import MastodonCore
|
||
|
|
||
|
final class ShareViewModel {
|
||
|
|
||
|
let logger = Logger(subsystem: "ComposeViewModel", category: "ViewModel")
|
||
|
|
||
|
var disposeBag = Set<AnyCancellable>()
|
||
|
|
||
|
// input
|
||
|
let context: AppContext
|
||
|
@Published var authContext: AuthContext?
|
||
|
|
||
|
@Published var isPublishing = false
|
||
|
|
||
|
// output
|
||
|
|
||
|
init(
|
||
|
context: AppContext
|
||
|
) {
|
||
|
self.context = context
|
||
|
// end init
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|