{"id":1183,"url":"https://github.com/Boilertalk/BlockiesSwift","last_synced_at":"2025-08-06T13:32:38.542Z","repository":{"id":56903832,"uuid":"114831948","full_name":"Boilertalk/BlockiesSwift","owner":"Boilertalk","description":"Unique blocky identicons generator for Swift","archived":false,"fork":false,"pushed_at":"2023-03-01T10:07:45.000Z","size":216,"stargazers_count":64,"open_issues_count":2,"forks_count":23,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-29T21:27:03.891Z","etag":null,"topics":["blockies","carthage","cocoa","cocoapods","ethereum","identicon","identicon-avatar","identicon-generator","ios","ios-swift","macos","swift","tvos","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/Boilertalk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["Ybrin"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-12-20T02:10:25.000Z","updated_at":"2024-06-18T21:13:47.000Z","dependencies_parsed_at":"2024-01-29T16:58:13.852Z","dependency_job_id":"a409e186-4508-4109-9b10-7c6e9c60a0ce","html_url":"https://github.com/Boilertalk/BlockiesSwift","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"4c74dd261a2f493af1f4e5872058809ba3dc5972"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boilertalk%2FBlockiesSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boilertalk%2FBlockiesSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boilertalk%2FBlockiesSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boilertalk%2FBlockiesSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Boilertalk","download_url":"https://codeload.github.com/Boilertalk/BlockiesSwift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228905489,"owners_count":17989775,"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","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":["blockies","carthage","cocoa","cocoapods","ethereum","identicon","identicon-avatar","identicon-generator","ios","ios-swift","macos","swift","tvos","watchos"],"created_at":"2024-01-05T20:15:40.740Z","updated_at":"2024-12-09T14:30:56.878Z","avatar_url":"https://github.com/Boilertalk.png","language":"Swift","funding_links":["https://github.com/sponsors/Ybrin"],"categories":["Graphics","Libs","Images [🔝](#readme)"],"sub_categories":["Getting Started","Images","Other free courses","Linter"],"readme":"\u003ca href=\"https://github.com/Boilertalk/BlockiesSwift\"\u003e\n  \u003cimg src=\"https://storage.googleapis.com/boilertalk/logo.svg\" width=\"100%\" height=\"256\"\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.org/Boilertalk/BlockiesSwift\"\u003e\n    \u003cimg src=\"http://img.shields.io/travis/Boilertalk/BlockiesSwift.svg?style=flat\" alt=\"CI Status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://cocoapods.org/pods/BlockiesSwift\"\u003e\n    \u003cimg src=\"https://img.shields.io/cocoapods/v/BlockiesSwift.svg?style=flat\" alt=\"Version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://cocoapods.org/pods/BlockiesSwift\"\u003e\n    \u003cimg src=\"https://img.shields.io/cocoapods/l/BlockiesSwift.svg?style=flat\" alt=\"License\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://cocoapods.org/pods/BlockiesSwift\"\u003e\n    \u003cimg src=\"https://img.shields.io/cocoapods/p/BlockiesSwift.svg?style=flat\" alt=\"Platform\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\" alt=\"Carthage compatible\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# :alembic: BlockiesSwift\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/Boilertalk/BlockiesSwift/raw/master/sample.png\" alt=\"Sample Blockies\"\u003e\n\u003c/p\u003e\n\nThis library is a Swift implementation of the [Ethereum fork of Blockies](https://github.com/ethereum/blockies) which is intended to be used in iOS, watchOS, tvOS and macOS apps.\n\nBlockies generates unique images (identicons) for a given seed string. Those can be used to create images representing an Ethereum (or other Cryptocurrency) Wallet address or really anything else.\n\n## Example\n\nTo run the example project, run `pod try BlockiesSwift`. Or clone the repo, and run `pod install` from the Example directory.\n\n## Installation\n\n### CocoaPods\n\nBlockiesSwift is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your `Podfile`:\n\n```ruby\npod 'BlockiesSwift'\n```\n\n### Carthage\n\nBlockiesSwift is compatible with [Carthage](https://github.com/Carthage/Carthage), a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To install it, simply add the following line to your `Cartfile`:\n\n```\ngithub \"Boilertalk/BlockiesSwift\"\n```\n\n## Usage\n\nBasic usage is very straight forward. You just create an instance of `Blockies` with your seed and call `createImage()` to get your image.\n\n```Swift\nimport BlockiesSwift\n\nlet blockies = Blockies(seed: \"0x869bb8979d38a8bc07b619f9d6a0756199e2c724\")\nlet img = blockies.createImage()\n\nyourImageView.image = img\n```\n\nThis will generate an image with `size` set to 8 and `scale` set to 4. `size` is the width and height of the Blockies image in blocks, `scale` is the width and height of one block in pixels.\n\nPer default, random colors are generated for the given seed. You can change that but keep in mind that the pattern will also change if you provide custom colors as there will be less calls to the internal `random()` function.\n\nThe following is a full example.\n\n```Swift\nimport BlockiesSwift\n\nlet blockies = Blockies(\n    seed: \"0x869bb8979d38a8bc07b619f9d6a0756199e2c724\",\n    size: 5,\n    scale: 10,\n    color: UIColor.green,\n    bgColor: UIColor.gray,\n    spotColor: UIColor.orange\n)\nlet img = blockies.createImage()\n\nyourImageView.image = img\n```\n\nThe following sizes work well for most cases.\n\n* size: 8, scale: 3\n* size: 5, scale: 10\n\nSizes above 10 generate more noisy structures. If you want to generate bigger images, you can go for a set of `size` and `scale` from the above and pass a `customScale` value to `createImage(_:)`.\n\n```Swift\nimport BlockiesSwift\n\nlet blockies = Blockies(\n    seed: \"0x869bb8979d38a8bc07b619f9d6a0756199e2c724\",\n    size: 8,\n    scale: 3\n)\nlet img = blockies.createImage(customScale: 10)\n\nyourImageView.image = img\n```\n\nThe image in this example would be `8 * 3 = 24x24` pixels without a custom scale. With the `customScale` set to `10` it will be `8 * 3 * 10 = 240x240` pixels. The `customScale` lets you generate bigger images with the same structure quality as the smaller ones.\n\n## Author\n\nKoray Koska, koray@boilertalk.com\n\n## License\n\nBlockiesSwift is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBoilertalk%2FBlockiesSwift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBoilertalk%2FBlockiesSwift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBoilertalk%2FBlockiesSwift/lists"}