feat: 更新素材管理和举报风险地图

This commit is contained in:
2026-07-09 12:20:02 +08:00
parent 9b92d81902
commit 42aca73588
42 changed files with 6164 additions and 1369 deletions

View File

@ -328,6 +328,19 @@ enum WildReportLocalMediaLoader {
}
}
extension MediaPreviewItem {
///
init?(wildReportAttachment attachment: WildReportAttachment) {
guard let url = attachment.localFileURL else { return nil }
switch attachment.kind {
case .image, .payment:
self = .localImage(url: url)
case .video:
self = .localVideo(url: url)
}
}
}
/// tile
final class WildReportAttachmentTileView: UIControl {
private let gradientLayer = CAGradientLayer()