Skip to content

Commit

Permalink
Merge pull request #85 from ZsIsMe/main
Browse files Browse the repository at this point in the history
Update SearchResultViewController.swift
  • Loading branch information
haowenwu authored Oct 9, 2023
2 parents 20c6646 + 1196a0f commit 7344dbe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class SearchResultViewController: UIViewController {
WebRequest.requestSearchResult(key: key) { [weak self] searchResult in
guard let self = self else { return }
currentSnapshot.deleteAllItems()

dataSource.apply(currentSnapshot)

let defaultHeight = NSCollectionLayoutDimension.fractionalWidth(Settings.displayStyle == .large ? 0.26 : 0.2)
for section in searchResult.result {
switch section {
Expand Down

0 comments on commit 7344dbe

Please sign in to comment.