Giter Site home page Giter Site logo

eggsbenedict's People

Contributors

jpmartha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

eggsbenedict's Issues

Send wrong image to Instagram

Even though I sent an image that was different from the sample image, the sample image was displayed on Instagram App.

Implementing the presentOpenInMenuFromBarButtonItem method

What's the difference between the presentOpenInMenuFromRect method and the presentOpenInMenuFromBarButtonItem method?

I'm not sure if I should implement the latter.

I thought the same on my iPhone.
This library has implemented the UIDocumentInteractionController Class' presentOpenInMenuFromRect method.

Raise an exception

  1. Call the sendImage method, and the menu is displayed.
  2. Tap the "Cancel" button.
  3. Call the removeTemporaryImage method, and handle the following error.
Error Domain=NSCocoaErrorDomain Code=4 "“jpmarthaeggsbenedict.ig”を削除できませんでした。" UserInfo={NSFilePath=/private/var/mobile/Containers/Data/Application/(an omission)/tmp/jpmarthaeggsbenedict.ig, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x1372c62b0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

Swift 3

Swift 3 update coming?
Regards

Improvement Error Handling

SharingFlowError

} catch let error as NSError {
    completion?(sharingFlowResult: .Failure(self.imagePath, error))

https://github.com/JPMartha/EggsBenedict/blob/develop/EggsBenedict/SharingFlow.swift#L115-L116

And, I think it is not necessary to implement the following:

guard !self.imagePath.isEmpty else {
    completion?(sharingFlowResult: .Failure(self.imagePath, SharingFlowError.ImagePathIsEmpty))
    return
}

https://github.com/JPMartha/EggsBenedict/blob/develop/EggsBenedict/SharingFlow.swift#L125-L128

Remaining the temporary image file

The image file in tmp/ directory isn't removed after sending it to Instagram app.
But if the deinitializer remove it, Instagram app doesn't start.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.