mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-14 01:55:26 +00:00
18 lines
484 B
Swift
18 lines
484 B
Swift
import Combine
|
|
import Models
|
|
import QuickLook
|
|
|
|
@MainActor
|
|
@Observable public class QuickLook {
|
|
public var selectedMediaAttachment: MediaAttachment?
|
|
public var mediaAttachments: [MediaAttachment] = []
|
|
|
|
public static let shared = QuickLook()
|
|
|
|
private init() {}
|
|
|
|
public func prepareFor(selectedMediaAttachment: MediaAttachment, mediaAttachments: [MediaAttachment]) {
|
|
self.selectedMediaAttachment = selectedMediaAttachment
|
|
self.mediaAttachments = mediaAttachments
|
|
}
|
|
}
|