From 1b8bef25d3daebdac14cfb5cc7509c16c681eef9 Mon Sep 17 00:00:00 2001 From: Hassaan El-Garem Date: Thu, 28 Apr 2022 06:56:09 +0200 Subject: [PATCH 1/3] Fix: incorrect placement of empty view in picker --- Pod/Classes/WPMediaPickerViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pod/Classes/WPMediaPickerViewController.m b/Pod/Classes/WPMediaPickerViewController.m index 723ff2b..ff75d8f 100644 --- a/Pod/Classes/WPMediaPickerViewController.m +++ b/Pod/Classes/WPMediaPickerViewController.m @@ -1454,7 +1454,8 @@ - (void)centerEmptyView } else { emptyViewFrame.origin.y = self.searchBarTopConstraint.constant; } - +// emptyViewFrame.size.height -= self.view.layoutMargins.bottom; +// emptyViewFrame.size.height -= self.view.layoutMargins.top; _emptyViewController.view.frame = emptyViewFrame; } else { self.emptyView.center = self.collectionView.center; From ab86aef8dcb1819d66f3f020682b84feca1f3e59 Mon Sep 17 00:00:00 2001 From: Hassaan El-Garem Date: Thu, 28 Apr 2022 07:03:44 +0200 Subject: [PATCH 2/3] Change: bump podspec version --- WPMediaPicker.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WPMediaPicker.podspec b/WPMediaPicker.podspec index bdb08df..f5ea40a 100644 --- a/WPMediaPicker.podspec +++ b/WPMediaPicker.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |s| s.name = 'WPMediaPicker' - s.version = '1.8.3' + s.version = '1.8.3-beta.1' s.summary = 'WPMediaPicker is an iOS controller that allows capture and picking of media assets.' s.description = <<-DESC From 0c09a04d38553c440e396a59b490f0406729fd5d Mon Sep 17 00:00:00 2001 From: Hassaan El-Garem Date: Thu, 28 Apr 2022 07:06:28 +0200 Subject: [PATCH 3/3] Fix: remove testing code --- Pod/Classes/WPMediaPickerViewController.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Pod/Classes/WPMediaPickerViewController.m b/Pod/Classes/WPMediaPickerViewController.m index ff75d8f..2a00ecc 100644 --- a/Pod/Classes/WPMediaPickerViewController.m +++ b/Pod/Classes/WPMediaPickerViewController.m @@ -1451,11 +1451,9 @@ - (void)centerEmptyView if ([self.searchBar.text isEqualToString:@""]) { emptyViewFrame.origin.y -= self.searchBar.frame.size.height/2; - } else { - emptyViewFrame.origin.y = self.searchBarTopConstraint.constant; } -// emptyViewFrame.size.height -= self.view.layoutMargins.bottom; -// emptyViewFrame.size.height -= self.view.layoutMargins.top; + emptyViewFrame.size.height -= self.view.layoutMargins.bottom; + emptyViewFrame.size.height -= self.view.layoutMargins.top; _emptyViewController.view.frame = emptyViewFrame; } else { self.emptyView.center = self.collectionView.center;