diff --git a/Classes/Skins/Minimal/ScreenshotSharerMinimal.swift b/Classes/Skins/Minimal/ScreenshotSharerMinimal.swift index 82d382c..564c76d 100644 --- a/Classes/Skins/Minimal/ScreenshotSharerMinimal.swift +++ b/Classes/Skins/Minimal/ScreenshotSharerMinimal.swift @@ -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() } diff --git a/Examples/ScreenshotSharerCustomSharerExample/ScreenshotSharerCustomSharerExample.xcodeproj/project.xcworkspace/xcuserdata/yagizgurgul.xcuserdatad/UserInterfaceState.xcuserstate b/Examples/ScreenshotSharerCustomSharerExample/ScreenshotSharerCustomSharerExample.xcodeproj/project.xcworkspace/xcuserdata/yagizgurgul.xcuserdatad/UserInterfaceState.xcuserstate index a7cc278..b2239e0 100644 Binary files a/Examples/ScreenshotSharerCustomSharerExample/ScreenshotSharerCustomSharerExample.xcodeproj/project.xcworkspace/xcuserdata/yagizgurgul.xcuserdatad/UserInterfaceState.xcuserstate and b/Examples/ScreenshotSharerCustomSharerExample/ScreenshotSharerCustomSharerExample.xcodeproj/project.xcworkspace/xcuserdata/yagizgurgul.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Examples/ScreenshotSharerCustomSharerExample/ScreenshotSharerCustomSharerExample/CustomSharerViewController.swift b/Examples/ScreenshotSharerCustomSharerExample/ScreenshotSharerCustomSharerExample/CustomSharerViewController.swift index 8c97bec..729b918 100644 --- a/Examples/ScreenshotSharerCustomSharerExample/ScreenshotSharerCustomSharerExample/CustomSharerViewController.swift +++ b/Examples/ScreenshotSharerCustomSharerExample/ScreenshotSharerCustomSharerExample/CustomSharerViewController.swift @@ -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() } diff --git a/Examples/ScreenshotSharerScreenCaptureExample/ScreenshotSharerScreenCaptureExample.xcodeproj/project.xcworkspace/xcuserdata/yagizgurgul.xcuserdatad/UserInterfaceState.xcuserstate b/Examples/ScreenshotSharerScreenCaptureExample/ScreenshotSharerScreenCaptureExample.xcodeproj/project.xcworkspace/xcuserdata/yagizgurgul.xcuserdatad/UserInterfaceState.xcuserstate index fa02650..6a37623 100644 Binary files a/Examples/ScreenshotSharerScreenCaptureExample/ScreenshotSharerScreenCaptureExample.xcodeproj/project.xcworkspace/xcuserdata/yagizgurgul.xcuserdatad/UserInterfaceState.xcuserstate and b/Examples/ScreenshotSharerScreenCaptureExample/ScreenshotSharerScreenCaptureExample.xcodeproj/project.xcworkspace/xcuserdata/yagizgurgul.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ScreenshotSharer.podspec b/ScreenshotSharer.podspec index 2b8c3c6..ae6837d 100644 --- a/ScreenshotSharer.podspec +++ b/ScreenshotSharer.podspec @@ -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