Releases: jpmartha/EggsBenedict
Releases · jpmartha/EggsBenedict
0.9.9
Added
- Test Cases
Improved
-
Updated the
Result
Enumeration to theSharingFlowResult
Enumerationenum SharingFlowResult<T, U> { case Success(T) case Failure(T, U) }
-
Handling Errors Example
sharingFlow.presentOpenInMenuWithImage(YourImage, inView: YourView, documentInteractionDelegate: self) { (sharingFlowResult) -> Void in switch sharingFlowResult { case .Success(let imagePath): print("Success: \(imagePath)") case let .Failure(imagePath, errorType): print("ImagePath: \(imagePath), ErrorType: \(errorType)") } }
But, if you don't need, you may also call the following method.
sharingFlow.presentOpenInMenuWithImage(YourImage, inView: YourView)
-