Latest 1.0.2
Homepage https://github.com/imgix/imgix-objc
License MIT
Platforms osx , ios , tvos , watchos
Authors

imgix logo

imgix-objc Build Status Coverage Status Slack Status

Official imgix client for iOS and macOS.

Written in Objective-C for maximum flexiblity. It’s annotated with nullability so it works well with Swift.

Usage

All of the options are implemented as properties with inline documentation so it’s easy to manipulate your images without looking up their documentation. Simply create an IGXClient with your host and token. (You can specify nil for your token if you don’t want signed URLs.)

Once you have a client, you can call URLWithPath: to generate an imgix URL for a given path. To generate URLs with parameters, just call URLWithPath:andOptions: with an NSDictionary of options instead.

The following example is in Swift, but you can of course use this library in Objective-C as well.

import Imgix

// Create a client
let client = IGXClient(host: "nothingmagical.imgix.net", token: "sMTidnYXXg9NB4qh")

// Generate a signed URL
client.URLWithPath("sam.jpg")
// => https://nothingmagical.imgix.net/sam.jpg?s=...

// Generate another signed URL, with adjusted brightness
client.URLWithPath("sam.jpg", options: ["bri": 10])
// => https://nothingmagical.imgix.net/sam.jpg?bri=10&s=...

Latest podspec

{
    "name": "imgix-objc",
    "version": "1.0.2",
    "summary": "The official iOS & macOS imgix client",
    "description": "Official imgix client for iOS.nnWritten in Objective-C for maximum flexiblity. It's annotated with nullability so it works well with Swift.",
    "homepage": "https://github.com/imgix/imgix-objc",
    "license": "MIT",
    "authors": {
        "Paul Straw": "[email protected]"
    },
    "social_media_url": "https://twitter.com/paulstraw",
    "source": {
        "git": "https://github.com/imgix/imgix-objc.git",
        "tag": "1.0.2"
    },
    "source_files": "Imgix/*.{h,m}",
    "platforms": {
        "osx": null,
        "ios": null,
        "tvos": null,
        "watchos": null
    }
}

Pin It on Pinterest

Share This