Skip to content

0.9.9

Pre-release
Pre-release
Compare
Choose a tag to compare
@jpmartha jpmartha released this 15 Jan 10:06
· 4 commits to develop since this release

Added

  • Test Cases

Improved

  • Updated the Result Enumeration to the SharingFlowResult Enumeration

    enum 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)