Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions App/Continuity/Views/Theme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,17 @@ struct AlbumBackdrop: View {
ZStack {
Theme.gradient(seed: seed)
if let backdrop {
Image(uiImage: backdrop)
.resizable()
.interpolation(.high)
.scaledToFill()
// Color.clear takes exactly the proposed size; the scaledToFill image lives in
// an overlay so its overflow can never widen this view's layout — an
// unconstrained fill image inflates the ZStack past the screen and shoves the
// page's centered content sideways.
Color.clear
.overlay(
Image(uiImage: backdrop)
.resizable()
.interpolation(.high)
.scaledToFill()
)
.transition(.opacity)
}
}
Expand Down
Loading