Latest 0.8
Homepage https://github.com/goposse/ripper
License Posse
Platforms ios 8.0, requires ARC
Dependencies Haitch
Authors

Ripper : great, fantastic – "that is a ripper of an image downloader"
Ripper, you little! : Exclamation of delight or as a reaction to good news

Ripper is an image download library written in Swift for iOS. It is simple, easy to use, and doesn’t come stuffed with things you don’t need.

CocoaPods
Carthage Compatible
Platform

Features

  • Full featured, but none of the bloat
  • Easy to understand, Builder(ish)-based architecture
  • Download directly to a UIImageView, block, or both (so you can edit it before it ends up in your View)
  • On-the-fly global image resizing (other operations to come)
  • Image filters (global and operation-scoped)
  • Built in image caching
  • Powered by Haitch

Installation

CocoaPods

Add the following line to your Podfile:

pod 'Ripper', '~> 0.8'

Then run pod update or pod install (if starting from scratch).

Carthage

Add the following line to your Cartfile:

github "goposse/ripper" ~> 0.8

Run carthage update and then follow the installation instructions here.

The basics

Loading an image from a url into a UIImageView with a placeholder image is as easy as:

  Ripper.downloader
    .load("http://somedomain.com/image.png")
    .placeholder(UIImage(named: "my_placeholder"))
    .into(myImageView)

If you want more control over the process you can simply execute the load request and do what you like with it:

Ripper.downloader
  .load("http://somedomain.com/image.png")
  .execute { (image, error) -> Void in
    // do something with the image or handle error
    // NOTE: this block will execute on main thread  
  }

FAQ

I wish it did ___ (or I found a bug)!

Please log an issue in Github and we’ll get back to you ASAP!

Why should I use this?

It’s up to you. There are other fantastic frameworks out there but, in our experience, we only need a small subset of the things they do. The goal of Ripper was to do one thing and one thing well. Not to deal with the possibility of "what if?". As we add new things to the library, we intend to work very hard to stay true to this one principle.

Has it been tested in production? Can I use it in production?

The code here has been written based on Posse’s experiences with clients of all sizes. It has been production tested. That said, this incarnation of the code is our own. It’s fresh. We plan to use it in production and we plan to keep on improving it. If you find a bug, let us know!

Who the f*ck is Posse?

We’re the best friggin mobile shop in NYC that’s who. Hey, but we’re biased. Our stuff is at http://goposse.com. Go check it out.

Outro

Credits

Ripper is sponsored, owned and maintained by Posse Productions LLC. Follow us on Twitter @goposse. Feel free to reach out with suggestions, ideas or to say hey.

Security

If you believe you have identified a serious security vulnerability or issue with Ripper, please report it as soon as possible to [email protected] Please refrain from posting it to the public issue tracker so that we have a chance to address it and notify everyone accordingly.

License

Ripper is released under a modified MIT license. See LICENSE for details.

Latest podspec

{
    "name": "Ripper",
    "version": "0.8",
    "license": "Posse",
    "summary": "Simple image downloads for Swift",
    "homepage": "https://github.com/goposse/ripper",
    "social_media_url": "http://twitter.com/goposse",
    "authors": {
        "Posse Productions LLC": "[email protected]"
    },
    "source": {
        "git": "https://github.com/goposse/ripper.git",
        "tag": "0.8"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Source/**/*.swift",
    "requires_arc": true,
    "dependencies": {
        "Haitch": [
            "~> 0.7"
        ]
    }
}

Pin It on Pinterest

Share This