feat: 更新素材管理和举报风险地图
This commit is contained in:
@ -137,10 +137,17 @@ class BaseViewController: UIViewController {
|
||||
topMostPresentedViewController().present(viewController, animated: animated, completion: completion)
|
||||
}
|
||||
|
||||
/// 全屏预览图片与视频媒体。
|
||||
func presentMediaPreview(items: [MediaPreviewItem], startIndex: Int) {
|
||||
guard !items.isEmpty else { return }
|
||||
presentOnTop(MediaPreviewViewController(items: items, startIndex: startIndex))
|
||||
}
|
||||
|
||||
/// 全屏预览网络图片。
|
||||
func presentImagePreview(imageURLs: [String], startIndex: Int) {
|
||||
guard !imageURLs.isEmpty else { return }
|
||||
presentOnTop(ImagePreviewViewController(imageURLs: imageURLs, startIndex: startIndex))
|
||||
let items = imageURLs.compactMap { MediaPreviewItem.remoteImage($0) }
|
||||
presentMediaPreview(items: items, startIndex: startIndex)
|
||||
}
|
||||
|
||||
// MARK: - Notifications
|
||||
|
||||
Reference in New Issue
Block a user