Skip to content

Commit

Permalink
UIActivityViewController success block bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yagiz Gurgul committed Mar 22, 2017
1 parent 3c2fef4 commit e4d9b7c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Skins/Minimal/ScreenshotSharerMinimal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ open class ScreenshotSharerMinimal: ScreenshotSharerViewController {

activityViewController.completionWithItemsHandler = { activity, success, items, error in

if success == true && error != nil
if success == true && error == nil
{
self.screenshotSharer().dismissSharerViewController()
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class CustomSharerViewController: ScreenshotSharerViewController {

activityViewController.completionWithItemsHandler = { activity, success, items, error in

if success == true && error != nil
if success == true && error == nil
{
self.screenshotSharer().dismissSharerViewController()
}
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion ScreenshotSharer.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ScreenshotSharer'
s.version = '0.6.0'
s.version = '0.7.0'
s.summary = 'ScreenshotSharer is a little Swift 3.0 pod that enables users to share screenshot image quickly.'

s.description = <<-DESC
Expand Down

0 comments on commit e4d9b7c

Please sign in to comment.