{"id":1461,"url":"https://github.com/josejuanqm/Ody","last_synced_at":"2025-08-02T04:31:12.806Z","repository":{"id":56921193,"uuid":"48957945","full_name":"josejuanqm/Ody","owner":"josejuanqm","description":"Random image generator built with Swift","archived":false,"fork":false,"pushed_at":"2017-03-16T02:44:39.000Z","size":197,"stargazers_count":45,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-27T07:02:46.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josejuanqm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-03T19:28:42.000Z","updated_at":"2023-12-09T16:49:30.000Z","dependencies_parsed_at":"2022-08-20T21:50:26.925Z","dependency_job_id":null,"html_url":"https://github.com/josejuanqm/Ody","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/josejuanqm/Ody","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josejuanqm%2FOdy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josejuanqm%2FOdy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josejuanqm%2FOdy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josejuanqm%2FOdy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josejuanqm","download_url":"https://codeload.github.com/josejuanqm/Ody/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josejuanqm%2FOdy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334611,"owners_count":24233793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:46.980Z","updated_at":"2025-08-02T04:31:12.486Z","avatar_url":"https://github.com/josejuanqm.png","language":"Objective-C","funding_links":[],"categories":["Media","UI"],"sub_categories":["Image","Other free courses"],"readme":"# Ody\n\n[![Version](https://img.shields.io/cocoapods/v/OdyiOS.svg?style=flat)](http://cocoapods.org/pods/OdyiOS)\n[![License](https://img.shields.io/cocoapods/l/OdyiOS.svg?style=flat)](http://cocoapods.org/pods/OdyiOS)\n[![Platform](https://img.shields.io/cocoapods/p/OdyiOS.svg?style=flat)](http://cocoapods.org/pods/OdyiOS)\n\nOdy is an easy to use random image generator built with Swift.\n\nPerfect for placeholders!\n\nBuilt with [Silo] [silojq], [LoremPixel] [images], and [FillDunphy] [filldunphy].\n\n### Demo\n---\n\n```swift \nodytizeAll()\n``` \n\n![alt tag] (https://i.imgur.com/x4oC6we.png)  ![alt tag] (https://i.imgur.com/xeLBKIY.gif)\n\n### Version\n---\n1.1\n\n[changelog](https://github.com/josejuanqm/Ody#changelog)\n\n### Installation\n---\n\nOdy is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"OdyiOS\"\n```\n\n---or---\n\nDownload from [here] [dld]\n- import the Swift File\n\nJust drag and drop Ody.swift file into your project\n\n## Usage\n---\n\n#### If you are using AutoLayout please call after the view appears or in ViewDidAppear method\n\n### From a UIImageView\n```swift\n  imageView.odytizeGrayscale()\n  imageView.odytizeGrayscale(loaderColor: UIColor)\n  imageView.odytizeGrayscale(category: ImageCategory, text: String)\n  imageView.odytize()\n  imageView.odytize(loaderColor: UIColor)\n  imageView.odytize(category: ImageCategory)\n  imageView.odytize(grayscale: Bool, category: ImageCategory, text: String)\n  \n  //To change loader color after odytizing\n  imageView.setLoaderColorForOdyView(UIColor)\n```\n\n### From a UIView (Odytizes every UIImageView within the UIView)\n```swift\n  view.odytizeAll()\n  view.odytizeAll(loaderColor: UIColor)\n  view.odytizeAll(grayscale: Bool, category: ImageCategory, text: String, loaderColor: UIColor)\n  view.odytizeAllToGrayscale()\n  view.odytizeAllToGrayscale(loaderColor: UIColor)\n  view.odytizeAllToGrayscale(category: ImageCategory)\n  view.odytizeAllWithCustomImage(url: String)\n  view.odytizeAllWithCustomImage(url: String, loaderColor: UIColor)\n```\n\n### Instantiating a new UIImageView\n```swift\n  UIImageView(loaderColor: UIColor, frame: CGRect)\n  UIImageView(category: ImageCategory, frame: CGRect)\n  UIImageView(loaderColor: UIColor, frame: CGRect, grayscale: Bool, category: ImageCategory, text: String)\n```\n\n### ImageCategory Enum\n\n| enum case  | Example  |\n| :------------: |:---------------:|\n| ``ImageCategory.Abstract``     | ![alt tag] (http://lorempixel.com/400/200/abstract) |\n| ``ImageCategory.Animals``     | ![alt tag] (http://lorempixel.com/400/200/animals) |\n| ``ImageCategory.Business`` | ![alt tag] (http://lorempixel.com/400/200/business) |\n|``ImageCategory.Cats``| ![alt tag] (http://lorempixel.com/400/200/cats) |\n|``ImageCategory.City``| ![alt tag] (http://lorempixel.com/400/200/city) |\n|``ImageCategory.Food``| ![alt tag] (http://lorempixel.com/400/200/food)|\n|``ImageCategory.Nightlife``| ![alt tag] (http://lorempixel.com/400/200/nightlife)|\n|``ImageCategory.Fashion``| ![alt tag] (http://lorempixel.com/400/200/fashion)|\n|``ImageCategory.People``| ![alt tag] (http://lorempixel.com/400/200/people)|\n|``ImageCategory.Nature``| ![alt tag] (http://lorempixel.com/400/200/nature)|\n|``ImageCategory.Sports``| ![alt tag] (http://lorempixel.com/400/200/sports)|\n|``ImageCategory.Technics``| ![alt tag] (http://lorempixel.com/400/200/technics)|\n|``ImageCategory.Transport``| ![alt tag] (http://lorempixel.com/400/200/transport)|\n|``ImageCategory.FillDunphy`` (does not support grayscale) | ![alt tag] (http://filldunphy.com/400/200) |\n\n\n### Changelog\n1.1\n\n* Added Support for CocoaPods\n\n1.0\n\n* Initial version\n\n[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax)\n\n\n   [dld]: \u003chttps://github.com/josejuanqm/Ody/blob/master/Ody/Ody.swift.zip?raw=true\u003e\n   [silojq]: \u003chttps://github.com/josejuanqm/Silo\u003e\n   [images]: \u003chttp://lorempixel.com/\u003e\n   [filldunphy]: \u003chttp://filldunphy.com\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosejuanqm%2FOdy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosejuanqm%2FOdy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosejuanqm%2FOdy/lists"}