This repository was archived by the owner on Jun 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,18 @@ - (void)viewDidDisappear:(BOOL)animated
294294 [self unregisterForKeyboardNotifications ];
295295}
296296
297+ - (void )traitCollectionDidChange : (UITraitCollection *)previousTraitCollection
298+ {
299+ [super traitCollectionDidChange: previousTraitCollection];
300+
301+ if ([self shouldShowCustomHeaderView ]) {
302+ // If there's a custom header, we'll invalidate it so that it can adapt itself to dynamic type changes.
303+ UICollectionViewFlowLayoutInvalidationContext *context = [UICollectionViewFlowLayoutInvalidationContext new ];
304+ [context invalidateSupplementaryElementsOfKind: UICollectionElementKindSectionHeader atIndexPaths: @[ [NSIndexPath indexPathForRow: 0 inSection: 0 ] ]];
305+ [self .collectionView.collectionViewLayout invalidateLayout ];
306+ }
307+ }
308+
297309- (UIViewController *)viewControllerToUseToPresent
298310{
299311 // viewControllerToUseToPresent defaults to self but could be set to nil. Reset to self if needed.
Original file line number Diff line number Diff line change 22
33Pod ::Spec . new do |s |
44 s . name = 'WPMediaPicker'
5- s . version = '1.8.2-beta.1 '
5+ s . version = '1.8.2-beta.2 '
66
77 s . summary = 'WPMediaPicker is an iOS controller that allows capture and picking of media assets.'
88 s . description = <<-DESC
You can’t perform that action at this time.
0 commit comments