mastodon-ios/Mastodon/Scene/Share/ContextMenu/ImagePreview/ContextMenuImagePreviewView...

28 lines
494 B
Swift
Raw Normal View History

2021-04-30 13:28:06 +02:00
//
// ContextMenuImagePreviewViewModel.swift
// Mastodon
//
// Created by MainasuK Cirno on 2021-4-30.
//
import UIKit
final class ContextMenuImagePreviewViewModel {
2021-04-30 13:28:06 +02:00
// input
let assetURL: URL
2021-04-30 13:28:06 +02:00
let thumbnail: UIImage?
let aspectRatio: CGSize
2021-04-30 13:28:06 +02:00
init(
assetURL: URL,
thumbnail: UIImage?,
aspectRatio: CGSize
) {
self.assetURL = assetURL
2021-04-30 13:28:06 +02:00
self.aspectRatio = aspectRatio
self.thumbnail = thumbnail
}
}