mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-20 01:27:59 +00:00
Fix hero poster pinned to top in EnhancedShowEpisodesView
Co-authored-by: scigward <162128369+scigward@users.noreply.github.com>
This commit is contained in:
parent
a8b7728281
commit
a17cd250bb
1 changed files with 17 additions and 14 deletions
|
|
@ -1108,24 +1108,27 @@ struct EnhancedShowEpisodesView: View {
|
|||
|
||||
@ViewBuilder
|
||||
private var heroImageSection: some View {
|
||||
if let posterURL = group.posterURL {
|
||||
LazyImage(url: posterURL) { state in
|
||||
if let uiImage = state.imageContainer?.image {
|
||||
Image(uiImage: uiImage)
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fill)
|
||||
} else {
|
||||
placeholderGradient
|
||||
VStack(spacing: 0) {
|
||||
if let posterURL = group.posterURL {
|
||||
LazyImage(url: posterURL) { state in
|
||||
if let uiImage = state.imageContainer?.image {
|
||||
Image(uiImage: uiImage)
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fill)
|
||||
} else {
|
||||
placeholderGradient
|
||||
}
|
||||
}
|
||||
}
|
||||
.ignoresSafeArea(.all)
|
||||
.frame(maxWidth: .infinity, maxHeight: 400)
|
||||
.clipped()
|
||||
} else {
|
||||
placeholderGradient
|
||||
.ignoresSafeArea(.all)
|
||||
.frame(maxWidth: .infinity, maxHeight: 400)
|
||||
.clipped()
|
||||
} else {
|
||||
placeholderGradient
|
||||
.ignoresSafeArea(.all)
|
||||
.frame(maxWidth: .infinity, maxHeight: 400)
|
||||
.clipped()
|
||||
}
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue