This commit is contained in:
anlicheng 2025-03-31 16:20:06 +08:00
parent 976bf090ad
commit 953b4a5a36
3 changed files with 17 additions and 22 deletions

View File

@ -103,7 +103,6 @@ struct FollowListView: View {
} }
.frame(width: 370) .frame(width: 370)
.ignoresSafeArea(edges: .bottom) .ignoresSafeArea(edges: .bottom)
.navigationBarBackButtonHidden()
.task { .task {
await self.followModel.loadData(userId: self.userId) await self.followModel.loadData(userId: self.userId)
} }

View File

@ -80,12 +80,6 @@ struct ListView: View {
var body: some View { var body: some View {
VStack(alignment: .center, spacing: 20) { VStack(alignment: .center, spacing: 20) {
HStack { HStack {
VStack(alignment: .leading, spacing: 20) {
Text(detailModel.name)
.font(.system(size: 28))
.foregroundColor(Color(hex: "#333333"))
.fontWeight(.medium)
}
Spacer() Spacer()
} }
.padding([.leading, .top, .bottom], 10) .padding([.leading, .top, .bottom], 10)
@ -114,26 +108,27 @@ struct ListView: View {
} }
} }
HStack(alignment: .center) { // HStack(alignment: .center) {
Button { // Button {
self.presentationMode.wrappedValue.dismiss() // self.presentationMode.wrappedValue.dismiss()
} label: { // } label: {
Rectangle() // Rectangle()
.frame(width: 200, height: 25) // .frame(width: 200, height: 25)
.foregroundColor(Color(hex: "#F2F2F2")) // .foregroundColor(Color(hex: "#F2F2F2"))
.overlay { // .overlay {
Text("收起剧集") // Text("")
.font(.system(size: 13)) // .font(.system(size: 13))
.foregroundColor(Color(hex: "#999999")) // .foregroundColor(Color(hex: "#999999"))
} // }
} // }
//
} // }
Spacer() Spacer()
} }
.frame(width: 370, alignment: .center) .frame(width: 370, alignment: .center)
} }
.navigationTitle(detailModel.name)
.task { .task {
await detailModel.loadData(userId: self.userId, id: self.id) await detailModel.loadData(userId: self.userId, id: self.id)
} }

View File

@ -41,6 +41,7 @@ struct dimensionhubApp: App {
IndexView() IndexView()
} }
.navigationViewStyle(.stack) .navigationViewStyle(.stack)
.tint(.black)
} }
.modelContainer(sharedModelContainer) .modelContainer(sharedModelContainer)
} }