Files
2026-07-13 13:33:03 +08:00

30 lines
529 B
Swift

//
// Attachment+Extension.swift
// MNNLLMiOS
//
// Created by 游薪渝(揽清) on 2025/1/17.
//
import ExyteChat
public extension Attachment {
var mediaString: String {
switch type {
case .image:
return "\(full.path)"
case .video:
return "\(full.path)"
}
}
}
public extension Recording {
var recordingString: String {
return "\(String(describing: url?.path))"
}
var durationString: String {
return "\(String(duration))"
}
}