Skip to content

Commit 9ddd533

Browse files
committed
Update package
1 parent 83a8651 commit 9ddd533

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

Sources/Intermodular/Helpers/UIKit/UIHostingCollectionViewController.Cache.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ extension UIHostingCollectionViewController.Cache {
132132
return size
133133
}
134134

135-
contentIdentifierToCacheMap[configuration.id]?.contentSize = size
135+
contentIdentifierToCacheMap[configuration.id, default: .init()].contentSize = size
136136
contentIdentifierToIndexPathMap[configuration.id] = indexPath
137137
indexPathToContentIdentifierMap[configuration.indexPath] = configuration.id
138138

Sources/Intermodular/Helpers/UIKit/UIHostingCollectionViewController.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,6 @@ final class UIHostingCollectionViewController<
269269
}
270270

271271
lastViewSafeAreaInsets = newSafeAreaInsets
272-
273-
cache.invalidate()
274-
275-
invalidateLayout(animated: true)
276272
}
277273

278274
public override func viewWillTransition(

Sources/Intramodular/Collection View & List/_CollectionViewConfiguration.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,14 @@ struct _CollectionViewCellOrSupplementaryViewConfiguration<
8383
SectionType,
8484
SectionIdentifierType: Hashable
8585
>: Identifiable {
86-
struct ID: Hashable {
86+
struct ID: CustomStringConvertible, Hashable {
8787
let reuseIdentifier: String
8888
let item: ItemIdentifierType?
8989
let section: SectionIdentifierType
90+
91+
var description: String {
92+
"(item: \(item.map(String.init(describing:)) ?? "nil"), section: \(section))"
93+
}
9094
}
9195

9296
let reuseIdentifier: String

Sources/Intramodular/Keyboard/Keyboard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import UIKit
1616
public final class Keyboard: ObservableObject {
1717
public static let main = Keyboard()
1818

19-
@Published public var state: State = .default
19+
@Published public private(set) var state: State = .default
2020
@Published public private(set) var isShown: Bool = false
2121

2222
/// A Boolean value that determines whether the keyboard is showing on-screen.

Sources/Intramodular/Search/SearchBar+NavigationView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ extension _NavigationSearchBarConfigurator {
165165
}
166166

167167
public func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
168+
self.searchController.isActive = false
169+
168170
searchBarCoordinator.searchBarCancelButtonClicked(searchBar)
169171
}
170172

0 commit comments

Comments
 (0)