IceCubesApp/Packages/MediaUI/Sources/MediaUI/DisplayType.swift

17 lines
260 B
Swift
Raw Normal View History

2024-01-22 20:54:28 +00:00
import Models
2024-02-14 11:48:14 +00:00
import SwiftUI
2024-01-22 20:54:28 +00:00
enum DisplayType {
case image
case av
init(from attachmentType: MediaAttachment.SupportedType) {
switch attachmentType {
case .image:
self = .image
case .video, .gifv, .audio:
self = .av
}
}
}