From ded69db64dff7bbe0a91c05f283eb387f3d2d289 Mon Sep 17 00:00:00 2001 From: Stephenie Harris Date: Wed, 19 Sep 2018 14:30:50 -0600 Subject: [PATCH 1/2] The empty search shows a different view, so place the empty results VC differently if actively searching. --- Pod/Classes/WPMediaPickerViewController.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Pod/Classes/WPMediaPickerViewController.m b/Pod/Classes/WPMediaPickerViewController.m index 87c12fb7..7f61b8d2 100644 --- a/Pod/Classes/WPMediaPickerViewController.m +++ b/Pod/Classes/WPMediaPickerViewController.m @@ -1433,7 +1433,13 @@ - (void)centerEmptyView { if (self.emptyViewController) { CGRect emptyViewFrame = [self getEmptyViewFrame]; - emptyViewFrame.origin.y -= self.searchBar.frame.size.height/2; + + if ([self.searchBar.text isEqualToString:@""]) { + emptyViewFrame.origin.y -= self.searchBar.frame.size.height/2; + } else { + emptyViewFrame.origin.y = self.searchBarTopConstraint.constant; + } + _emptyViewController.view.frame = emptyViewFrame; } else { self.emptyView.center = self.collectionView.center; From 82f798c0dc18b17a11dfafa37f1fd39eb508b29b Mon Sep 17 00:00:00 2001 From: Stephenie Harris Date: Wed, 19 Sep 2018 14:31:01 -0600 Subject: [PATCH 2/2] Updating version. --- WPMediaPicker.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WPMediaPicker.podspec b/WPMediaPicker.podspec index 23de3af7..1876ca58 100644 --- a/WPMediaPicker.podspec +++ b/WPMediaPicker.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "WPMediaPicker" - s.version = "1.3" + s.version = "1.3.1-beta.1" s.summary = "WPMediaPicker is an iOS controller that allows capture and picking of media assets." s.description = <<-DESC WPMediaPicker is an iOS controller that allows capture and picking of media assets.