Files
UUVPN/iOS-SwiftUI-Code/XiaoXiong/DefaultUI/View/MessageCenterView.swift
T

76 lines
2.0 KiB
Swift

//
// MessageCenterView.swift
// SFI
//
// Created by Mac on 2024/10/24.
//
import Foundation
//
//
// QuestionView.swift
// SFI
//
// Created by Mac on 2024/10/24.
//
import ApplicationLibrary
import Foundation
import SwiftUI
struct MessageCenterView: View {
@Environment(\.presentationMode) var presentationMode
var body: some View {
NavigationView(content: {
VStack{
ZStack{
HStack{
Button(action: {
presentationMode.wrappedValue.dismiss()
}, label: {
Image(systemName: "chevron.left")
.foregroundColor(.white)
Text("返回")
.foregroundColor(.white)
}).padding(10)
Spacer(minLength: 0)
}
Text("消息通知")
.fontWeight(.bold).lineLimit(1)
}
.padding()
// .padding(.top,edges.top)
.foregroundColor(.white)
Text("暂无消息").font(.subheadline).padding()
Spacer()
}.navigationBarHidden(true).edgesIgnoringSafeArea(.bottom).foregroundColor(.white).background(
LinearGradient(colors: [
Color("BG1"),
Color("BG1"),
Color("BG2"),
Color("BG2"),
], startPoint: .top, endPoint: .bottom))
})
.navigationBarHidden(true)
.navigationBarBackButtonHidden(true)
}
}