Skip to content

Commit

Permalink
Fix cover layour issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Dec 14, 2024
1 parent efac14a commit 17bcbed
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ class ReaderDetailViewController: UIViewController, ReaderDetailView {
configureDiscoverAttribution(post)

let coverURL = ReaderPostCoverView.getFeaturedImageURL(for: post)
coverView.delegate = coordinator
coverView.isHidden = coverURL == nil
if let coverURL {
coverView.setImageURL(coverURL)
Expand Down Expand Up @@ -516,6 +515,9 @@ class ReaderDetailViewController: UIViewController, ReaderDetailView {
header.useCompatibilityMode = useCompatibilityMode
header.delegate = coordinator

coverView.delegate = coordinator
coverView.isHidden = true

let stackView = UIStackView(axis: .vertical, [header, coverView])
headerContainerView.addSubview(stackView)
stackView.pinEdges()
Expand Down

0 comments on commit 17bcbed

Please sign in to comment.