Unofficial Imgix client for iOS.
Written in Objective-C for maximum flexiblity. It's annotated with nullability so it works well with Swift.
All of the options are implemented as properties with in-line 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.)
Now you can adjust the properties to customize your image. All URLs you create with URLWithPath:
will have those settings applied. This is especially handy if you use the same options everywhere.
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=...
// Increase the brightness
client.brightness = 10
// Generate another signed URL
client.URLWithPath("sam.jpg")
// => https://nothingmagical.imgix.net/sam.jpg?bri=10&s=...