{"id":1474,"url":"https://github.com/nixzhu/Navi","last_synced_at":"2025-08-02T04:31:14.185Z","repository":{"id":62448864,"uuid":"43258665","full_name":"nixzhu/Navi","owner":"nixzhu","description":"Focus on avatar caching.","archived":false,"fork":false,"pushed_at":"2017-08-08T06:35:00.000Z","size":276,"stargazers_count":115,"open_issues_count":2,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-05T06:07:32.088Z","etag":null,"topics":[],"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/nixzhu.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}},"created_at":"2015-09-27T18:20:27.000Z","updated_at":"2023-07-28T01:40:17.000Z","dependencies_parsed_at":"2022-11-01T23:17:12.497Z","dependency_job_id":null,"html_url":"https://github.com/nixzhu/Navi","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/nixzhu/Navi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixzhu%2FNavi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixzhu%2FNavi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixzhu%2FNavi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixzhu%2FNavi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nixzhu","download_url":"https://codeload.github.com/nixzhu/Navi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixzhu%2FNavi/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:47.294Z","updated_at":"2025-08-02T04:31:13.829Z","avatar_url":"https://github.com/nixzhu.png","language":"Swift","funding_links":[],"categories":["Media","UI"],"sub_categories":["Image","Other free courses"],"readme":"\u003cp\u003e\n\u003ca href=\"http://cocoadocs.org/docsets/Navi\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/v/Navi.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Carthage/Carthage/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Navi\n\nNavi is designed for avatar caching, with style.\n\nThe name of **Navi** from movie [Avatar](https://en.wikipedia.org/wiki/Avatar_(2009_film)).\n\n## Requirements\n\nSwift 3.1, iOS 8.0\n\n- Swift 2.3, use version 0.5.0\n- Swift 3.0, use version 1.1.0\n\n## Usage\n\n1. Make your User conform Avatar protocol.\n\n\t``` swift\n\tprotocol Avatar {\n\n\t    var url: URL? { get }\n\t    var style: AvatarStyle { get }\n\t    var placeholderImage: UIImage? { get }\n\t    var localOriginalImage: UIImage? { get }\n\t    var localStyledImage: UIImage? { get }\n\n\t    func save(originalImage: UIImage, styledImage: UIImage)\n\t}\n\t```\n\n2. And, set avatar for your avatarImageView\n\n\t``` swift\n\tavatarImageView.navi_setAvatar(userAvatar)\n\t```\n\nCheck the demo for more information.\n\n另有[中文介绍](https://github.com/nixzhu/dev-blog/blob/master/2015-10-08-navi.md)。\n\n## Installation\n\n### Carthage\n\n```ogdl\ngithub \"nixzhu/Navi\"\n```\n\n### CocoaPods\n\n```ruby\npod 'Navi'\n```\n\n## Contact\n\nNIX [@nixzhu](https://twitter.com/nixzhu)\n\n## License\n\nNavi 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%2Fnixzhu%2FNavi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnixzhu%2FNavi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixzhu%2FNavi/lists"}