Latest 0.1.0
Homepage https://github.com/josejuanqm/Ody
License MIT
Platforms ios 8.0, requires ARC
Authors

Ody

Version
License
Platform

Ody is an easy to use random image generator built with Swift.

Perfect for placeholders!

Built with Silo, LoremPixel, and FillDunphy.

Demo


odytizeAll()

![alt tag] (https://i.imgur.com/x4oC6we.png) ![alt tag] (https://i.imgur.com/xeLBKIY.gif)

Version


1.1

changelog

Installation


Ody is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "OdyiOS"

—or—

Download from here

  • import the Swift File

Just drag and drop Ody.swift file into your project

Usage


If you are using AutoLayout please call after the view appears or in ViewDidAppear method

From a UIImageView

  imageView.odytizeGrayscale()
  imageView.odytizeGrayscale(loaderColor: UIColor)
  imageView.odytizeGrayscale(category: ImageCategory, text: String)
  imageView.odytize()
  imageView.odytize(loaderColor: UIColor)
  imageView.odytize(category: ImageCategory)
  imageView.odytize(grayscale: Bool, category: ImageCategory, text: String)

  //To change loader color after odytizing
  imageView.setLoaderColorForOdyView(UIColor)

From a UIView (Odytizes every UIImageView within the UIView)

  view.odytizeAll()
  view.odytizeAll(loaderColor: UIColor)
  view.odytizeAll(grayscale: Bool, category: ImageCategory, text: String, loaderColor: UIColor)
  view.odytizeAllToGrayscale()
  view.odytizeAllToGrayscale(loaderColor: UIColor)
  view.odytizeAllToGrayscale(category: ImageCategory)
  view.odytizeAllWithCustomImage(url: String)
  view.odytizeAllWithCustomImage(url: String, loaderColor: UIColor)

Instantiating a new UIImageView

  UIImageView(loaderColor: UIColor, frame: CGRect)
  UIImageView(category: ImageCategory, frame: CGRect)
  UIImageView(loaderColor: UIColor, frame: CGRect, grayscale: Bool, category: ImageCategory, text: String)

ImageCategory Enum

enum case Example
ImageCategory.Abstract ![alt tag] (http://lorempixel.com/400/200/abstract)
ImageCategory.Animals ![alt tag] (http://lorempixel.com/400/200/animals)
ImageCategory.Business ![alt tag] (http://lorempixel.com/400/200/business)
ImageCategory.Cats ![alt tag] (http://lorempixel.com/400/200/cats)
ImageCategory.City ![alt tag] (http://lorempixel.com/400/200/city)
ImageCategory.Food ![alt tag] (http://lorempixel.com/400/200/food)
ImageCategory.Nightlife ![alt tag] (http://lorempixel.com/400/200/nightlife)
ImageCategory.Fashion ![alt tag] (http://lorempixel.com/400/200/fashion)
ImageCategory.People ![alt tag] (http://lorempixel.com/400/200/people)
ImageCategory.Nature ![alt tag] (http://lorempixel.com/400/200/nature)
ImageCategory.Sports ![alt tag] (http://lorempixel.com/400/200/sports)
ImageCategory.Technics ![alt tag] (http://lorempixel.com/400/200/technics)
ImageCategory.Transport ![alt tag] (http://lorempixel.com/400/200/transport)
ImageCategory.FillDunphy (does not support grayscale) ![alt tag] (http://filldunphy.com/400/200)

Changelog

1.1

  • Added Support for CocoaPods

1.0

  • Initial version

Latest podspec

{
    "name": "OdyiOS",
    "version": "0.1.0",
    "summary": "Ody is an easy to use random image generator built with Swift.",
    "description": "Ody is an easy to use random image generator built with Swift.nnPerfect for placeholders!nnBuilt with Silo, LoremPixel, and FillDunphy.",
    "homepage": "https://github.com/josejuanqm/Ody",
    "license": "MIT",
    "authors": {
        "Jose Quintero": "[email protected]"
    },
    "source": {
        "git": "https://github.com/josejuanqm/Ody.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/josejuanqm",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Ody/OdyiOS/Pod/Classes/**/*",
    "resource_bundles": {
        "OdyiOS": [
            "Ody/OdyiOS/Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This