增加注解

This commit is contained in:
JinJiangHuang
2026-03-01 22:23:38 +08:00
parent 99a8cc799b
commit ee8c71dcd4
23 changed files with 374 additions and 24 deletions
+7
View File
@@ -1,8 +1,13 @@
import SwiftUI
///
///
struct EmptyStateView: View {
/// SF Symbol
let icon: String
///
let title: String
///
var message: String? = nil
var body: some View {
@@ -23,11 +28,13 @@ struct EmptyStateView: View {
}
.padding(.bottom, 8)
//
Text(title)
.font(.title3.bold())
.foregroundColor(.white.opacity(0.9))
.tracking(1)
//
if let message = message {
Text(message)
.font(.callout)