ShareViewModel.swift 778 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // ShareViewModel.swift
  3. // MastodonShareAction
  4. //
  5. // Created by MainasuK Cirno on 2021-7-16.
  6. //
  7. import os.log
  8. import Foundation
  9. import Combine
  10. import CoreData
  11. import CoreDataStack
  12. import MastodonSDK
  13. import SwiftUI
  14. import UniformTypeIdentifiers
  15. import MastodonAsset
  16. import MastodonLocalization
  17. import MastodonUI
  18. import MastodonCore
  19. final class ShareViewModel {
  20. let logger = Logger(subsystem: "ComposeViewModel", category: "ViewModel")
  21. var disposeBag = Set<AnyCancellable>()
  22. // input
  23. let context: AppContext
  24. @Published var authContext: AuthContext?
  25. @Published var isPublishing = false
  26. // output
  27. init(
  28. context: AppContext
  29. ) {
  30. self.context = context
  31. // end init
  32. }
  33. }