Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use aspect fill for the previews to handle orientation change
Browse files Browse the repository at this point in the history
brindy committed Feb 2, 2024
1 parent 4806426 commit 181c269
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DuckDuckGo/SwipeTabsCoordinator.swift
Original file line number Diff line number Diff line change
@@ -208,6 +208,7 @@ extension SwipeTabsCoordinator: UICollectionViewDelegate {

private func createPreviewFromImage(_ image: UIImage) {
let imageView = UIImageView(image: image)
imageView.contentMode = .scaleAspectFill
coordinator.contentContainer.addSubview(imageView)
preview = imageView
}

0 comments on commit 181c269

Please sign in to comment.