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)
.ignoresSafeArea(edges: .bottom)
.navigationBarBackButtonHidden()
.task {
await self.followModel.loadData(userId: self.userId)
}

View File

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

View File

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