fix
This commit is contained in:
parent
f9aaa4a892
commit
35a85b2a8a
@ -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)
|
||||
|
||||
@ -26,7 +26,8 @@ struct dimensionhubApp: App {
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
//IndexView()
|
||||
DetailView()
|
||||
//DetailView()
|
||||
ListView()
|
||||
}
|
||||
.modelContainer(sharedModelContainer)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user