{"id":49451710,"url":"https://github.com/lukaskubanek/LoremIpsum","last_synced_at":"2026-05-16T15:00:43.578Z","repository":{"id":8622915,"uuid":"10266478","full_name":"lukaskubanek/LoremIpsum","owner":"lukaskubanek","description":"A lightweight lorem ipsum and image placeholders generator for Objective-C","archived":false,"fork":false,"pushed_at":"2023-12-17T18:52:38.000Z","size":574,"stargazers_count":232,"open_issues_count":4,"forks_count":20,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-23T04:53:01.958Z","etag":null,"topics":["ios","lorem-ipsum","objective-c"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukaskubanek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-05-24T13:02:46.000Z","updated_at":"2025-10-23T02:27:44.000Z","dependencies_parsed_at":"2023-12-17T19:48:00.788Z","dependency_job_id":null,"html_url":"https://github.com/lukaskubanek/LoremIpsum","commit_stats":{"total_commits":130,"total_committers":4,"mean_commits":32.5,"dds":0.2615384615384615,"last_synced_commit":"6d5e2a40e4bd452b09f08a4cacacd8eee4fb5dd6"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/lukaskubanek/LoremIpsum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaskubanek%2FLoremIpsum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaskubanek%2FLoremIpsum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaskubanek%2FLoremIpsum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaskubanek%2FLoremIpsum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukaskubanek","download_url":"https://codeload.github.com/lukaskubanek/LoremIpsum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaskubanek%2FLoremIpsum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33107564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ios","lorem-ipsum","objective-c"],"created_at":"2026-04-30T03:00:32.663Z","updated_at":"2026-05-16T15:00:43.565Z","avatar_url":"https://github.com/lukaskubanek.png","language":"Objective-C","funding_links":[],"categories":["Image Generation \u0026 Editing"],"sub_categories":[],"readme":"# Lorem Ipsum\n\n*Lorem Ipsum* is a simple lorem ipsum generator for iOS, watchOS, tvOS, and macOS apps. It supports generating text in different formats (words, sentences, paragraphs), miscelianous data (names, URLs, dates etc.) and placeholder images.\n\nThis project was inspired by a great static site generator [Middleman](http://github.com/middleman/middleman). Its [lorem ipsum feature](https://github.com/middleman/middleman/blob/37e22c040ebcabed0ac3d8bce85aa085177d012a/middleman-core/lib/middleman-more/extensions/lorem.rb) was also a data source for this project.\n\n#### Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n    - [Texts](#texts)\n    - [Misc Data](#misc-data)\n    - [Images](#images)\n- [Example Projects](#example-projects)\n- [Author](#author)\n- [License](#license)\n\n## Installation\n\n### CocoaPods\n\n*Lorem Ipsum* can be integrated into your Xcode project using CocoaPods by putting following line into your `Podfile` and running `pod install`:\n\n```ruby\npod 'LoremIpsum', '~\u003e 1.0'\n```\n\n### Swift Package Manager\n\n*Lorem Ipsum* can be added as a Swift Package by including it in your `Package.swift` file.\n\n### Manual\nAlternatively you can copy the files `LoremIpsum.h` and `LoremIpsum.m` to your project.\n\n## Usage\n\n*Lorem Ipsum* is usable in both Objective-C and Swift. \n\n### Objective-C\n\nWherever you want to use *Lorem Ipsum* functionality, import the header file.\n\n```objective-c\n#import \"LoremIpsum.h\"\n```\n\n#### Texts\n\n```objective-c\nNSString *word = LoremIpsum.word; // =\u003e \"voluptatem\"\nNSString *words = [LoremIpsum wordsWithNumber:5]; // =\u003e \"est dolores voluptatem cumque itaque\"\nNSString *sentence = LoremIpsum.sentence; // =\u003e \"Facilis magni autem ut iure cum voluptas excepturi eos.\"\nNSString *sentences = [LoremIpsum sentencesWithNumber:2];\nNSString *paragraph = LoremIpsum.paragraph;\nNSString *paragraphs = [LoremIpsum paragraphsWithNumber:2];\nNSString *title = LoremIpsum.title; // =\u003e \"Et Quibusdam\"\n```\n\n#### Misc. Data\n\n```objective-c\nNSString *firstName = LoremIpsum.firstName; // =\u003e \"Dora\"\nNSString *lastName = LoremIpsum.lastName; // =\u003e \"Glass\"\nNSString *name = LoremIpsum.name; // =\u003e \"Tomas Beasley\"\nNSString *email = LoremIpsum.email; // =\u003e \"jared.finch@hotmail.com\"\nNSURL *URL = LoremIpsum.URL; // =\u003e \"http://stumbleupon.com/\"\nNSString *tweet = LoremIpsum.tweet;\nNSDate *date = LoremIpsum.date;\n```\n\n### Swift\n\nWherever you want to use *Lorem Ipsum* functionality, import the module.\n\n```swift\nimport LoremIpsum\n```\n\n#### Texts\n\n```swift\nlet word: String = LoremIpsum.word // =\u003e \"voluptatem\"\nlet words: String = LoremIpsum.words(withNumber: 5) // =\u003e \"est dolores voluptatem cumque itaque\"\nlet sentence: String = LoremIpsum.sentence  // =\u003e \"Facilis magni autem ut iure cum voluptas excepturi eos.\"\nlet sentences = LoremIpsum.sentences(withNumber: 2)\nlet paragraph = LoremIpsum.paragraph\nlet paragraphs = LoremIpsum.paragraphs(withNumber: 2)\nlet title = LoremIpsum.title // =\u003e \"Et Quibusdam\"\n```\n\n#### Misc. Data\n\n```swift\nlet firstName = LoremIpsum.firstName // =\u003e \"Dora\"\nlet lastName = LoremIpsum.lastName // =\u003e \"Glass\"\nlet name = LoremIpsum.name // =\u003e \"Tomas Beasley\"\nlet email = LoremIpsum.email // =\u003e \"jared.finch@hotmail.com\"\nlet url: URL = LoremIpsum.URL // =\u003e \"http://stumbleupon.com/\"\nlet tweet: String = LoremIpsum.tweet\nlet date = LoremIpsum.date\n```\n\n### Images\n\n*Lorem Ipsum* supports creating placeholder images by downloading them from following supported services:\n\n| Service                                   | Value of `LIPlaceholderImageService`   |\n| ----------------------------------------- | -------------------------------------- |\n| [lorempixel.com](http://lorempixel.com)   | `LIPlaceholderImageServiceLoremPixel`  |\n| [dummyimage.com](http://dummyimage.com)   | `LIPlaceholderImageServiceDummyImage`  |\n| [placekitten.com](http://placekitten.com) | `LIPlaceholderImageServicePlaceKitten` |\n\n*Lorem Ipsum* offers methods for synchronous and asynchronous downloading of images as well as retrieving the URL for an image without downloading it. All methods work for all four supported platforms. According to the platform, `UIImage` or `NSImage` instances are created.\n\n#### Synchronous Downloading\n\n```objective-c\nUIImage *image = [LoremIpsum placeholderImageFromService:LIPlaceholderImageServicePlaceKitten\n                                                withSize:CGSizeMake(250, 250)];\n                                                 \nNSImage *image = [LoremIpsum placeholderImageWithSize:NSMakeSize(100, 400)];\n```\n\n#### Asynchronous Downloading\n\n```objective-c\n[LoremIpsum asyncPlaceholderImageFromService:LIPlaceholderImageServicePlaceKitten\n                                    withSize:CGSizeMake(250, 250)\n                                  completion:^(UIImage *image) {\n                                      // use image here\n                                  }];\n                                  \n[LoremIpsum asyncPlaceholderImageWithSize:NSMakeSize(100, 400)\n                               completion:^(NSImage *image) {\n                                   // use image here\n                               }];\n```\n\n#### Image URLs\n\n```objective-c\nNSURL *URL = [LoremIpsum URLForPlaceholderImageFromService:LIPlaceholderImageServiceDummyImage\n                                                  withSize:CGSizeMake(250, 250)];\n```\n\n## Example Projects\n\nThis repository contains four [example projects](/Examples/) for iOS, watchOS, tvOS, and macOS where the usage of *Lorem Ipsum* is shown.\n\n## Author\n\nLukas Kubanek // [lukaskubanek.com](http://lukaskubanek.com) // [@kubanekl](https://twitter.com/kubanekl)\n\n## License\n\nUsage is provided under the [MIT License](http://opensource.org/licenses/MIT). See [LICENSE.md](LICENSE.md) for the full details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukaskubanek%2FLoremIpsum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukaskubanek%2FLoremIpsum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukaskubanek%2FLoremIpsum/lists"}