mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-05-17 03:52:42 +00:00
17 lines
260 B
Swift
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
|
|
}
|
|
}
|
|
}
|