This commit is contained in:
anlicheng 2025-02-22 00:17:06 +08:00
parent f9aaa4a892
commit 35a85b2a8a
2 changed files with 5 additions and 2 deletions

View File

@ -81,6 +81,7 @@ struct ListView: View {
var body: some View {
VStack(alignment: .center, spacing: 20) {
Color.clear.frame(height: 50)
HStack {
VStack(alignment: .leading, spacing: 20) {
@ -92,6 +93,7 @@ struct ListView: View {
}
Spacer()
}
.padding([.leading, .top, .bottom], 10)
.background(Color.yellow)
//
@ -150,8 +152,8 @@ struct ListView: View {
Spacer()
}
//.border(Color.red)
.frame(width: 370, alignment: .center)
.ignoresSafeArea(.all)
.task {
await detailModel.loadData(dramaId: 124)
print(UIScreen.main.bounds.width)

View File

@ -26,7 +26,8 @@ struct dimensionhubApp: App {
var body: some Scene {
WindowGroup {
//IndexView()
DetailView()
//DetailView()
ListView()
}
.modelContainer(sharedModelContainer)
}