{"id":19139908,"url":"https://github.com/arcblock/did-motif-ios","last_synced_at":"2026-06-17T12:31:23.404Z","repository":{"id":96025203,"uuid":"470455595","full_name":"ArcBlock/did-motif-ios","owner":"ArcBlock","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-05T08:41:38.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-22T18:50:55.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArcBlock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2022-03-16T06:12:39.000Z","updated_at":"2022-12-15T00:09:52.000Z","dependencies_parsed_at":"2025-01-03T14:47:20.000Z","dependency_job_id":"6c730225-0138-46e0-8387-e50ef388f663","html_url":"https://github.com/ArcBlock/did-motif-ios","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ArcBlock/did-motif-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Fdid-motif-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Fdid-motif-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Fdid-motif-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Fdid-motif-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArcBlock","download_url":"https://codeload.github.com/ArcBlock/did-motif-ios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Fdid-motif-ios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34449277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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-11-09T07:15:38.009Z","updated_at":"2026-06-17T12:31:23.385Z","avatar_url":"https://github.com/ArcBlock.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DID Motif iOS\n\n[![Swift Package Manager compatible](https://img.shields.io/badge/SPM-compatible-brightgreen.svg?style=flat\u0026colorA=28a745\u0026\u0026colorB=4E4E4E)](https://github.com/apple/swift-package-manager)\n\n## Install\n\n#### Swift Package Manager\n\nYou can use [Swift Package Manager](https://swift.org/package-manager/) and specify dependency in `Package.swift` by adding this:\n\n```swift\n.package(url: \"https://github.com/ArcBlock/did-motif-ios.git\", .upToNextMajor(from: \"1.0.0\"))\n```\n\nSee: [Package.swift - manual](http://blog.krzyzanowskim.com/2016/08/09/package-swift-manual/)\n\n## Usage\n\nRender DID Motif:\n\n1. Add view \n\n```\nlet motifView = DIDMotifView()\n\n// recomend to set size as square.\n// DIDMotif will render it as it real shape\nmotifView.frame = CGRect(x: 0, y: 0, width: 40, height: 40) \n```\n\n2. Render with specific shape\n\n```\nmotifView.renderWith(address: \"zNKb2kbCvDHo9APDhD1trbAV1EVoYF6PcSJ3\", shape: .square)\n\nmotifView.renderWith(address: \"zNKb2kbCvDHo9APDhD1trbAV1EVoYF6PcSJ3\", shape: .circle)\n        \nmotifView.renderWith(address: \"zNKb2kbCvDHo9APDhD1trbAV1EVoYF6PcSJ3\", shape: .rectangle)\n        \nmotifView.renderWith(address: \"zNKb2kbCvDHo9APDhD1trbAV1EVoYF6PcSJ3\", shape: .hexagon)\n```\n![image](https://user-images.githubusercontent.com/13864988/159204677-43d31052-84d4-47e1-9e88-380de56643ab.png)\n![image](https://user-images.githubusercontent.com/13864988/159204740-6a8d90d9-bd51-4763-8a54-befc14bd7553.png)\n![image](https://user-images.githubusercontent.com/13864988/159204697-e93fcb40-4699-4ba0-a412-5d6f012b5ba5.png)\n![image](https://user-images.githubusercontent.com/13864988/159204706-417383eb-551a-4c23-b14d-3157830fd829.png)\n\n\n3. Render with origin shape by DID\n\n```\n// DApp\nmotifView.renderWith(address: \"zNKeLKixvCM32TkVM1zmRDdAU3bvm3dTtAcM\", shape: nil)\n\n// TOKEN: PLAY 3\nmotifView.renderWith(address: \"z35n3kwEXMakjzfaf24DLd67dTJRByTf8y1FN\", shape: nil)\n        \n// Account\nmotifView.renderWith(address: \"z1imdeFgjsR7n1PhBpyW7uu1zr617sCN64x\", shape: nil)\n        \n// NFT\nmotifView.renderWith(address: \"zjdov4taExQmjyFV4Jt5YPGF5yVUg57pPtQY\", shape: nil)\n```\n![image](https://user-images.githubusercontent.com/13864988/159204842-6ca5e443-8786-4bee-9f2c-3f9a510e298b.png)\n![image](https://user-images.githubusercontent.com/13864988/159204780-b929e0e1-96a4-43a5-8450-4d30c66194b0.png)\n![image](https://user-images.githubusercontent.com/13864988/159204868-f221845a-6ff3-4f76-ba69-a23c943883c5.png)\n![image](https://user-images.githubusercontent.com/13864988/159204795-07f7d4b3-142f-44f1-b905-c3d2f19a01be.png)\n\n\n## License\n\nCopyright 2018-2022 ArcBlock\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcblock%2Fdid-motif-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcblock%2Fdid-motif-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcblock%2Fdid-motif-ios/lists"}