{"id":1491,"url":"https://github.com/dkalaitzidis/SwiftyAvatar","last_synced_at":"2025-08-02T04:31:17.810Z","repository":{"id":62456841,"uuid":"64937269","full_name":"dkalaitzidis/SwiftyAvatar","owner":"dkalaitzidis","description":"iOS Swift class to create circular or rounded avatar images","archived":false,"fork":false,"pushed_at":"2018-07-11T11:37:54.000Z","size":201,"stargazers_count":183,"open_issues_count":2,"forks_count":19,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-01T15:12:01.854Z","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/dkalaitzidis.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":"2016-08-04T13:33:20.000Z","updated_at":"2024-03-31T12:32:19.000Z","dependencies_parsed_at":"2022-11-01T22:46:38.840Z","dependency_job_id":null,"html_url":"https://github.com/dkalaitzidis/SwiftyAvatar","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/dkalaitzidis/SwiftyAvatar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkalaitzidis%2FSwiftyAvatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkalaitzidis%2FSwiftyAvatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkalaitzidis%2FSwiftyAvatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkalaitzidis%2FSwiftyAvatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkalaitzidis","download_url":"https://codeload.github.com/dkalaitzidis/SwiftyAvatar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkalaitzidis%2FSwiftyAvatar/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.700Z","updated_at":"2025-08-02T04:31:17.491Z","avatar_url":"https://github.com/dkalaitzidis.png","language":"Swift","funding_links":[],"categories":["Media","UI"],"sub_categories":["Image","Other free courses"],"readme":"SwiftyAvatar\n===================\n\n[![3.0](https://img.shields.io/badge/Swift%203--brightgreen.svg)](https://developer.apple.com/swift/)\n[![Apache](https://img.shields.io/hexpm/l/plug.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n[![CocoaPods Compatible](https://img.shields.io/badge/Pod-1.0-blue.svg)](https://img.shields.io/badge/Pod-1.0-blue.svg)\n\niOS **Swift 3.0** UIimage class\nCreate awesome circular avatar images!\n--------------------------------------\n![enter image description here](http://i.imgur.com/bZFMGGj.png)\n\n----------\n**IBInspectable** attributes accessible from the identity inspector. \n\n- Roundness\n- Border width\n- Border color\n- Background color\n\nYou can see the changes directly on the storyboard!\n\n----------\n\n\nInstallation\n-------------\n\n**Cocoapods:**\n\n- pod 'SwiftyAvatar', '~\u003e 1.1'\n\n**Manual:**\n\n- drag 'n drop SwiftyAvatar.swift into your project.\n\n----------\n\nHow to use\n-------------\n\n**Storyboard:** \n\n- Select the image you want to use as avatar and change the class to SwiftyAvatar.\n\n**Code:**\n- With default initializer\n```\nlet avatar = SwiftyAvatar()\navatar.image = UIImage(named:\"yourImage\")\n```\n\n- With your values\n```\nlet avatar = SwiftyAvatar(size: 50, \n                          roundess: 2, \n                          borderWidth: 1, \n                          borderColor: .orange, \n                          background: .black)\n                          \n    avatar.image = UIImage(named: \"yourImage\")\n```\n\n\n----------\n\nContact \u0026 Contribute\n-------------\n\n- Feel free to contact me with ideas or suggestions at kalaitzidis34@gmail.com\n- Fork the project and make your own changes\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkalaitzidis%2FSwiftyAvatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkalaitzidis%2FSwiftyAvatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkalaitzidis%2FSwiftyAvatar/lists"}