{"id":19328235,"url":"https://github.com/jndisrupter/jnavatarwithinitials","last_synced_at":"2025-07-08T18:05:39.802Z","repository":{"id":56916301,"uuid":"107028802","full_name":"JNDisrupter/JNAvatarWithInitials","owner":"JNDisrupter","description":"Avatar with initials","archived":false,"fork":false,"pushed_at":"2019-09-09T11:51:13.000Z","size":334,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T15:17:56.162Z","etag":null,"topics":["avatar","cocoapods","fullname","initials","initials-avatar","placeholder-image","swift","uiimage","xcode"],"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/JNDisrupter.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":"2017-10-15T16:26:31.000Z","updated_at":"2019-09-09T11:51:15.000Z","dependencies_parsed_at":"2022-08-21T03:50:45.949Z","dependency_job_id":null,"html_url":"https://github.com/JNDisrupter/JNAvatarWithInitials","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/JNDisrupter/JNAvatarWithInitials","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JNDisrupter%2FJNAvatarWithInitials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JNDisrupter%2FJNAvatarWithInitials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JNDisrupter%2FJNAvatarWithInitials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JNDisrupter%2FJNAvatarWithInitials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JNDisrupter","download_url":"https://codeload.github.com/JNDisrupter/JNAvatarWithInitials/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JNDisrupter%2FJNAvatarWithInitials/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264320949,"owners_count":23590561,"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":["avatar","cocoapods","fullname","initials","initials-avatar","placeholder-image","swift","uiimage","xcode"],"created_at":"2024-11-10T02:21:03.996Z","updated_at":"2025-07-08T18:05:39.781Z","avatar_url":"https://github.com/JNDisrupter.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JNAvatarWithInitials\n\n[![Build Status](https://travis-ci.org/JNDisrupter/JNAvatarWithInitials.svg?branch=master)](https://travis-ci.org/JNDisrupter/JNAvatarWithInitials)\n[![Version](https://img.shields.io/cocoapods/v/JNAvatarWithInitials.svg?style=flat)](http://cocoapods.org/pods/JNAvatarWithInitials)\n[![License](https://img.shields.io/cocoapods/l/JNAvatarWithInitials.svg?style=flat)](http://cocoapods.org/pods/JNAvatarWithInitials)\n[![Platform](https://img.shields.io/cocoapods/p/JNAvatarWithInitials.svg?style=flat)](http://cocoapods.org/pods/JNAvatarWithInitials)\n\n**JNAvatarWithInitials** is used to show single avatar image usign web url or UIImage object and have the option to show initials.\n\n## Screenshots\n![ScreenShot1](https://github.com/JNDisrupter/JNAvatarWithInitials/raw/master/Images/screenshot1.png)\n\n## Requirements\n\n- iOS 9.0+ / macOS 10.10+\n- Xcode 9.0+\n- Swift 4+\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\nTo integrate JNAvatarWithInitials into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\n\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'JNAvatarWithInitials'\nend\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n## Usage\n\n#### To add JNAvatarWithInitials in interface builder:\n\n1. Put some UIView and change the class to \"JNAvatarWithInitials\"\n\n2. Add refrence for it in the view controller.\n\n3. Change Attributes:\n \n * initialsFont : The font that is used for the initials.\n * initialTextColor : The text color that is used for the initials.\n * initialLabelInset : The insets that applied to the initials label.\n \n4. Call setup method:\n  \n  \u003e Setup view using image url \n\n```swift\nfunc setup(imageUrl : String , placeHolderImage : UIImage , fullName : String , showInitails)\n```\n ##### parameters\n * imageUrl : The image url to use for loading image.\n * placeHolderImage : The placeholder image to use when failed.\n * fullName : The full name to use for initials.\n * showInitails : Flag to indicate if should show initials or not.\n \n\n  \u003e Setup view using UIImage \n\n```swift\nfunc setup(image : UIImage? , placeHolderImage : UIImage , fullName : String , showInitails)\n```\n ##### parameters\n * image : The UIImage object to set.\n * placeHolderImage : The placeholder image to use if the UIImage object is nil.\n * fullName : The full name to use for initials.\n * showInitails : Flag to indicate if should show initials or not.\n \n 5. Getter methods:\n \n \u003e Get Image View\n \n ```swift\n func getImageView() -\u003e UIImageView\n ```\n \n## Authors\n\nJayel Zaghmoutt \u0026 Mohammad Nabulsi\n\n## License\n\nJNAvatarWithInitials is available under the MIT license. See the [LICENSE](https://github.com/JNDisrupter/JNAvatarWithInitials/blob/master/LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjndisrupter%2Fjnavatarwithinitials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjndisrupter%2Fjnavatarwithinitials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjndisrupter%2Fjnavatarwithinitials/lists"}