Random image generator built with Swift

Related tags

Image Ody
Overview

Ody

Version License Platform

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

Perfect for placeholders!

Built with [Silo] silojq, [LoremPixel] images, and FillDunphy 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] dld

  • 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
You might also like...
AsyncImage before iOS 15. Lightweight, pure SwiftUI Image view, that displays an image downloaded from URL, with auxiliary views and local cache.

URLImage URLImage is a SwiftUI view that displays an image downloaded from provided URL. URLImage manages downloading remote image and caching it loca

A complete Mac App: drag an image file to the top section and the bottom section will show you the text of any QRCodes in the image.

QRDecode A complete Mac App: drag an image file to the top section and the bottom section will show you the text of any QRCodes in the image. QRDecode

Convert the image to hexadecimal to send the image to e-paper

ConvertImageToHex Convert the image to hexadecimal to send the image to e-paper Conversion Order // 0. hex로 변환할 이미지 var image = UIImage(named: "sample

Twitter Image Pipeline is a robust and performant image loading and caching framework for iOS clients

Twitter Image Pipeline (a.k.a. TIP) Background The Twitter Image Pipeline is a streamlined framework for fetching and storing images in an application

Image-cropper - Image cropper for iOS

Image-cropper Example To run the example project, clone the repo, and run pod in

An instagram-like image editor that can apply preset filters passed to it and customized editings to a binded image.
An instagram-like image editor that can apply preset filters passed to it and customized editings to a binded image.

CZImageEditor CZImageEditor is an instagram-like image editor with clean and intuitive UI. It is pure swift and can apply preset filters and customize

A GPU accelerated image and video processing framework built on Metal.
A GPU accelerated image and video processing framework built on Metal.

MetalPetal An image processing framework based on Metal. Design Overview Goals Core Components MTIContext MTIImage MTIFilter MTIKernel Optimizations C

Image gallery similar to Adidias' app, built in SwiftUI
Image gallery similar to Adidias' app, built in SwiftUI

TripleStackGallery TripleStackGallery is a image gallery component, which displays a set of images as a stack of three images, always displaying the i

BlockiesSwift - Unique blocky identicons generator for Swift
BlockiesSwift - Unique blocky identicons generator for Swift

⚗️ BlockiesSwift This library is a Swift implementation of the Ethereum fork of Blockies which is intended to be used in iOS, watchOS, tvOS and macOS

Comments
  • not work property in a table cell with autolayout

    not work property in a table cell with autolayout

    When the table loaded the first batch of cells, the the draw method of OdyView is not called, thus will not show the images.

    The images will show when the cells move into screen from offscreen.

    enhancement 
    opened by hpsoar 2
Owner
Jose Quintero
iOS Developer made in Guatemala
Jose Quintero
Random image and background color with swift

Random-image-and-background-color Hello, this is my first project. Frankly, I got this idea from the "IOS Academy" page, but: color scale for the back

imhalid 2 Apr 12, 2022
iOS hashtag generator, using image analysis and discovery

Tagger Description Want to be popular on some social network easily? Use Tagger to make your account content more popular and to raise your popularity

Ivan Magda 44 Dec 17, 2022
React-native-image-generator - Library to generate images from layers

react-native-image-generator Library for generate images from other images Insta

Evgeny Usov 13 Nov 16, 2022
Generate random user Avatars for apps.

Avatar Generate random user Avatars for apps. Works for iOS 9.3+ Installation Simply install using Cocoapods, add 'pod Avatar' to your podfile Simple

William Vabrinskas 24 Nov 3, 2022
App that generates random images and attempts to classify them with MobileNetV2

Image-Classifier-App App that generates random images and attempts to classify t

Eli Hartnett 0 Jul 9, 2022
An image download extension of the image view written in Swift for iOS, tvOS and macOS.

Moa, an image downloader written in Swift for iOS, tvOS and macOS Moa is an image download library written in Swift. It allows to download and show an

Evgenii Neumerzhitckii 330 Sep 9, 2022
AYImageKit is a Swift Library for Async Image Downloading, Show Name's Initials and Can View image in Separate Screen.

AYImageKit AYImageKit is a Swift Library for Async Image Downloading. Features Async Image Downloading. Can Show Text Initials. Can have Custom Styles

Adnan Yousaf 11 Jan 10, 2022
An NSFW image detector for Swift built as an extension on UIImage.

Swift_NSFW_Detector An NSFW image detector for Swift built as an extension on UIImage. If you've ever allowed users to share images you are probably w

Chris Brown 5 Nov 27, 2022
📷 A composable image editor using Core Image and Metal.

Brightroom - Composable image editor - building your own UI Classic Image Editor PhotosCrop Face detection Masking component ?? v2.0.0-alpha now open!

Muukii 2.8k Jan 3, 2023
📷 A composable image editor using Core Image and Metal.

Brightroom - Composable image editor - building your own UI Classic Image Editor PhotosCrop Face detection Masking component ?? v2.0.0-alpha now open!

Muukii 2.8k Jan 2, 2023