Files
suixinkan_ios_new/suixinkan/Features/ScenicPromotion/Views/ScenicPromotionMediaEmptyView.swift

45 lines
1.4 KiB
Swift

//
// ScenicPromotionMediaEmptyView.swift
// suixinkan
//
// Created by Codex on 2026/7/2.
//
import SwiftUI
/// /
struct ScenicPromotionMediaEmptyView: View {
let mode: ScenicPromotionMediaMode
var body: some View {
VStack(spacing: 12) {
Image(systemName: mode == .video ? "play.rectangle.fill" : "photo.on.rectangle.angled")
.font(.system(size: 44, weight: .semibold))
.foregroundStyle(Color(hex: 0x57A2FF))
Text(mode == .video ? "暂无视频" : "暂无照片")
.font(.system(size: 19, weight: .bold))
.foregroundStyle(Color(hex: 0x1E5DA8))
Text("敬请期待更多精彩内容")
.font(.system(size: 13, weight: .medium))
.foregroundStyle(Color(hex: 0x6B83A8))
}
.frame(maxWidth: .infinity, minHeight: 172)
}
}
#if DEBUG
#Preview("素材空状态-视频") {
ScenicPromotionMediaEmptyView(mode: .video)
.padding()
.background(.white.opacity(0.72), in: RoundedRectangle(cornerRadius: 18))
.padding()
}
#Preview("素材空状态-照片") {
ScenicPromotionMediaEmptyView(mode: .photo)
.padding()
.background(.white.opacity(0.72), in: RoundedRectangle(cornerRadius: 18))
.padding()
}
#endif