IceCubesApp/Packages/MediaUI/Sources/MediaUI/DisplayType.swift
Thomas Ricouard 1f858414d8 format .
2024-02-14 12:48:14 +01:00

17 lines
260 B
Swift

import Models
import SwiftUI
enum DisplayType {
case image
case av
init(from attachmentType: MediaAttachment.SupportedType) {
switch attachmentType {
case .image:
self = .image
case .video, .gifv, .audio:
self = .av
}
}
}