fix
This commit is contained in:
parent
2175a8c74e
commit
23b6664c04
@ -257,6 +257,7 @@ struct DetailView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if detailModel.selectedEpisodes.count >= 5 {
|
||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
NavigationLink(destination: ListView(id: self.id)) {
|
NavigationLink(destination: ListView(id: self.id)) {
|
||||||
Rectangle()
|
Rectangle()
|
||||||
@ -270,6 +271,7 @@ struct DetailView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -422,7 +422,11 @@ extension IndexView {
|
|||||||
VStack(alignment: .center) {
|
VStack(alignment: .center) {
|
||||||
GeometryReader { geometry in
|
GeometryReader { geometry in
|
||||||
AsyncImage(url: URL(string: item.thumb)) { image in
|
AsyncImage(url: URL(string: item.thumb)) { image in
|
||||||
image.resizable()
|
image
|
||||||
|
.resizable()
|
||||||
|
.aspectRatio(contentMode: .fit)
|
||||||
|
.frame(width: geometry.frame(in: .local).width, height: 80)
|
||||||
|
.clipped()
|
||||||
} placeholder: {
|
} placeholder: {
|
||||||
ProgressView()
|
ProgressView()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -113,7 +113,7 @@ struct ListView: View {
|
|||||||
|
|
||||||
// 渠道相关的数据列表
|
// 渠道相关的数据列表
|
||||||
ScrollView(.vertical, showsIndicators: false) {
|
ScrollView(.vertical, showsIndicators: false) {
|
||||||
VStack(alignment: .center, spacing: 15) {
|
LazyVStack(alignment: .center, spacing: 15) {
|
||||||
ForEach(detailModel.selectedEpisodes) { episode in
|
ForEach(detailModel.selectedEpisodes) { episode in
|
||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
AsyncImage(url: URL(string: episode.thumb)) { image in
|
AsyncImage(url: URL(string: episode.thumb)) { image in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user