Files
ios-client/IosClientKit/Sources/CoreUI/LoggedOutView.swift
2026-09-15 14:35:52 +08:00

21 lines
558 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import SwiftUI
/// 未登录占位视图(打卡/计划/我的页复用)。
public struct LoggedOutView: View {
private let onNavigateToAuth: () -> Void
public init(onNavigateToAuth: @escaping () -> Void) {
self.onNavigateToAuth = onNavigateToAuth
}
public var body: some View {
ContentUnavailableView {
Label("未登录", systemImage: "lock")
} description: {
Text("登录后即可查看")
} actions: {
Button("去登录", action: onNavigateToAuth)
}
}
}