From 62b029cabd5d62f4f15b8dd261e1a58900232379 Mon Sep 17 00:00:00 2001 From: thijsonline <40237628+thijsonline@users.noreply.github.com> Date: Tue, 18 Sep 2018 10:25:00 +0200 Subject: [PATCH 1/5] Update Localizable.strings Improved Dutch translation --- Classes/IDMPBLocalizations.bundle/nl.lproj/Localizable.strings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/IDMPBLocalizations.bundle/nl.lproj/Localizable.strings b/Classes/IDMPBLocalizations.bundle/nl.lproj/Localizable.strings index 87f699ea..590deb46 100644 --- a/Classes/IDMPBLocalizations.bundle/nl.lproj/Localizable.strings +++ b/Classes/IDMPBLocalizations.bundle/nl.lproj/Localizable.strings @@ -26,7 +26,7 @@ "Failed" = "Mislukt"; /* Used in the context: 'Showing 1 of 3 items' */ -"of" = "of"; +"of" = "van"; /* No comment provided by engineer. */ "Photo" = "Foto"; From ae0616654a393972de3694f8f1e5530e08fc896e Mon Sep 17 00:00:00 2001 From: Thijs - Mobiel Bekeken <40237628+mobielbekeken-thijs@users.noreply.github.com> Date: Tue, 5 Jul 2022 11:28:50 +0200 Subject: [PATCH 2/5] increase height for bar buttons in landscape --- Classes/IDMPhotoBrowser.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/IDMPhotoBrowser.m b/Classes/IDMPhotoBrowser.m index 9cd39f32..b91445fa 100644 --- a/Classes/IDMPhotoBrowser.m +++ b/Classes/IDMPhotoBrowser.m @@ -1139,8 +1139,8 @@ - (BOOL)isLandscape:(UIInterfaceOrientation)orientation - (CGRect)frameForToolbarAtOrientation:(UIInterfaceOrientation)orientation { CGFloat height = 44; - if ([self isLandscape:orientation]) - height = 32; +// if ([self isLandscape:orientation]) +// height = 32; CGRect rtn = CGRectMake(0, self.view.bounds.size.height - height, self.view.bounds.size.width, height); rtn = [self adjustForSafeArea:rtn adjustForStatusBar:true]; From 6d95acae8bca6dac80e89bb2209c762606a3ab04 Mon Sep 17 00:00:00 2001 From: Thijs Ubbink | Mobiel Bekeken Date: Thu, 11 Apr 2024 09:36:03 +0200 Subject: [PATCH 3/5] bugfix --- Classes/IDMPhotoBrowser.m | 9 +++++---- .../xcshareddata/IDEWorkspaceChecks.plist | 8 ++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 Demo/PhotoBrowserDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/Classes/IDMPhotoBrowser.m b/Classes/IDMPhotoBrowser.m index b91445fa..b8bd02df 100644 --- a/Classes/IDMPhotoBrowser.m +++ b/Classes/IDMPhotoBrowser.m @@ -574,10 +574,11 @@ - (CGRect)getToolbarButtonFrame:(UIImage *)image{ } - (UIImage*)getImageFromView:(UIView *)view { - UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 2); - [view.layer renderInContext:UIGraphicsGetCurrentContext()]; - UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); - UIGraphicsEndImageContext(); + UIGraphicsImageRenderer *renderer = [[UIGraphicsImageRenderer alloc] initWithSize:view.bounds.size]; + UIImage *image = [renderer imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull context) { + [view drawViewHierarchyInRect:view.bounds afterScreenUpdates:true]; + }]; + return image; } diff --git a/Demo/PhotoBrowserDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Demo/PhotoBrowserDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/Demo/PhotoBrowserDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + From e6c0470e1f8372d0fe73568abecd637d311adc2e Mon Sep 17 00:00:00 2001 From: Thijs Ubbink | Mobiel Bekeken Date: Thu, 11 Apr 2024 09:37:43 +0200 Subject: [PATCH 4/5] bump version --- IDMPhotoBrowser.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDMPhotoBrowser.podspec b/IDMPhotoBrowser.podspec index b2e724f4..be0ea913 100644 --- a/IDMPhotoBrowser.podspec +++ b/IDMPhotoBrowser.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = "IDMPhotoBrowser" s.summary = "Photo Browser / Viewer inspired by Facebook's and Tweetbot's with ARC support, swipe-to-dismiss, image progress and more." - s.version = "1.11.3" + s.version = "1.12" s.homepage = "https://github.com/ideaismobile/IDMPhotoBrowser" s.license = { :type => 'MIT', :file => 'LICENSE.txt' } s.author = { "Eduardo Callado" => "eduardo_tasker@hotmail.com" } - s.source = { :git => "https://github.com/ideaismobile/IDMPhotoBrowser.git", :tag => "1.11.3" } + s.source = { :git => "https://github.com/ideaismobile/IDMPhotoBrowser.git", :tag => "1.12" } s.platform = :ios, '8.0' s.source_files = 'Classes/*.{h,m}' s.resources = 'Classes/IDMPhotoBrowser.bundle', 'Classes/IDMPBLocalizations.bundle' From 407b33d571626de92759c6bbfd09a4f66c518eeb Mon Sep 17 00:00:00 2001 From: Thijs Ubbink | Mobiel Bekeken Date: Thu, 11 Apr 2024 09:41:20 +0200 Subject: [PATCH 5/5] bugfix --- Classes/IDMPhotoBrowser.m | 3 +++ IDMPhotoBrowser.podspec | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Classes/IDMPhotoBrowser.m b/Classes/IDMPhotoBrowser.m index b8bd02df..43e91c52 100644 --- a/Classes/IDMPhotoBrowser.m +++ b/Classes/IDMPhotoBrowser.m @@ -574,6 +574,9 @@ - (CGRect)getToolbarButtonFrame:(UIImage *)image{ } - (UIImage*)getImageFromView:(UIView *)view { + if(view.bounds.size.width == 0 && view.bounds.size.height == 0) { + return NULL; + } UIGraphicsImageRenderer *renderer = [[UIGraphicsImageRenderer alloc] initWithSize:view.bounds.size]; UIImage *image = [renderer imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull context) { [view drawViewHierarchyInRect:view.bounds afterScreenUpdates:true]; diff --git a/IDMPhotoBrowser.podspec b/IDMPhotoBrowser.podspec index be0ea913..09d0047c 100644 --- a/IDMPhotoBrowser.podspec +++ b/IDMPhotoBrowser.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = "IDMPhotoBrowser" s.summary = "Photo Browser / Viewer inspired by Facebook's and Tweetbot's with ARC support, swipe-to-dismiss, image progress and more." - s.version = "1.12" + s.version = "1.13" s.homepage = "https://github.com/ideaismobile/IDMPhotoBrowser" s.license = { :type => 'MIT', :file => 'LICENSE.txt' } s.author = { "Eduardo Callado" => "eduardo_tasker@hotmail.com" } - s.source = { :git => "https://github.com/ideaismobile/IDMPhotoBrowser.git", :tag => "1.12" } + s.source = { :git => "https://github.com/ideaismobile/IDMPhotoBrowser.git", :tag => "1.13" } s.platform = :ios, '8.0' s.source_files = 'Classes/*.{h,m}' s.resources = 'Classes/IDMPhotoBrowser.bundle', 'Classes/IDMPBLocalizations.bundle'