23 lines
356 B
Swift
23 lines
356 B
Swift
|
import Foundation
|
||
|
import GRDB
|
||
|
import Martin
|
||
|
import SwiftUI
|
||
|
|
||
|
enum AttachmentType: Stateable {
|
||
|
case movie
|
||
|
case image
|
||
|
case audio
|
||
|
case file
|
||
|
case location
|
||
|
case contact
|
||
|
}
|
||
|
|
||
|
struct Attachment: Stateable {
|
||
|
let id: String
|
||
|
let type: AttachmentType
|
||
|
let url: URL?
|
||
|
let data: [Data]?
|
||
|
let str: String?
|
||
|
let localPath: URL?
|
||
|
}
|