fix List
This commit is contained in:
parent
976bf090ad
commit
953b4a5a36
@ -103,7 +103,6 @@ struct FollowListView: View {
|
||||
}
|
||||
.frame(width: 370)
|
||||
.ignoresSafeArea(edges: .bottom)
|
||||
.navigationBarBackButtonHidden()
|
||||
.task {
|
||||
await self.followModel.loadData(userId: self.userId)
|
||||
}
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
@ -41,6 +41,7 @@ struct dimensionhubApp: App {
|
||||
IndexView()
|
||||
}
|
||||
.navigationViewStyle(.stack)
|
||||
.tint(.black)
|
||||
}
|
||||
.modelContainer(sharedModelContainer)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user