{"id":15293594,"url":"https://github.com/nsnull0/ywnameplaceholder","last_synced_at":"2026-02-08T15:32:11.552Z","repository":{"id":56929857,"uuid":"96107343","full_name":"nsnull0/YWNamePlaceholder","owner":"nsnull0","description":"Generic Profile Picture Placeholder","archived":false,"fork":false,"pushed_at":"2017-07-28T10:56:59.000Z","size":118,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T00:17:00.806Z","etag":null,"topics":["cocoapods","profile-picture","swift","swift-library","swift3"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/nsnull0.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-07-03T12:15:08.000Z","updated_at":"2017-07-11T06:39:49.000Z","dependencies_parsed_at":"2022-08-21T06:20:59.949Z","dependency_job_id":null,"html_url":"https://github.com/nsnull0/YWNamePlaceholder","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nsnull0/YWNamePlaceholder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsnull0%2FYWNamePlaceholder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsnull0%2FYWNamePlaceholder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsnull0%2FYWNamePlaceholder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsnull0%2FYWNamePlaceholder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsnull0","download_url":"https://codeload.github.com/nsnull0/YWNamePlaceholder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsnull0%2FYWNamePlaceholder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266903110,"owners_count":24003836,"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-07-24T02:00:09.469Z","response_time":99,"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":["cocoapods","profile-picture","swift","swift-library","swift3"],"created_at":"2024-09-30T16:50:09.268Z","updated_at":"2026-02-08T15:32:11.510Z","avatar_url":"https://github.com/nsnull0.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YWNamePlaceHolder\n[![CI Status](https://travis-ci.org/nsnull0/YWNamePlaceholder.svg?branch=master)](https://travis-ci.org/nsnull0/YWNamePlaceholder)\n[![Version](https://img.shields.io/cocoapods/v/YWNamePlaceholder.svg?style=flat)](https://cocoapods.org/pods/YWNamePlaceholder)\n[![License](https://img.shields.io/cocoapods/l/YWNamePlaceholder.svg?style=flat)](https://cocoapods.org/pods/YWNamePlaceholder)\n[![Platform](https://img.shields.io/cocoapods/p/YWNamePlaceholder.svg?style=flat)](https://cocoapods.org/pods/YWNamePlaceholder)\n\nProfile Picture place Holder\n\n\n## Availability\n#### ⚠️ **This Library only Available to Swift \u003e 3.0** ⚠️\n\n## Screenshot\n\u003cimg src=\"https://raw.github.com/nsnull0/YWNamePlaceholder/master/ss_complete.png\" alt=\"iPhone6s\" width=\"414\" /\u003e\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\n```ruby\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\npod 'YWNamePlaceHolder'\nend\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n## Initialization\nYWNamePlaceHolder is UIView descent\n```swift\n\n//initiate with default length characters based on text received\nlet yourProfileContainer:YWNamePlaceHolder = YWNamePlaceHolder(originLocation: \u003cCGPoint\u003e ,\n_withSize: \u003cCGFloat\u003e ,\n_yourPlaceholder :\u003cString\u003e ,\n_fontPlaceHolder: \u003cUIFont\u003e)\n\n\n//initiate with your preferred length of characters\nlet yourProfileContainer:YWNamePlaceHolder = YWNamePlaceHolder(originLocation: \u003cCGPoint\u003e ,\n_withSize: \u003cCGFloat\u003e ,\n_yourPlaceholder :\u003cString\u003e ,\n_fontPlaceHolder: \u003cUIFont\u003e,\n_constraintTextResultCount: \u003cInt\u003e)\n\n```\n\n## Functionality\n```swift\n\nfunc setFont(UIFont)\n\n/*\nTextColor: setting the text profile color\nContentColor: setting the circle background content\n*/\nfunc setColor(TextColor\u003cUIColor\u003e, ContentColor\u003cUIColor\u003e)\n\n/*\nfontSize: setting the text size spesificly and static\n*/\nfunc setFontSize(fontSize\u003cCGFloat\u003e)\n\n/*\nto list font that used in the device\n*/\nfunc debugListFontDevice() -\u003e Array\u003cString\u003e\n\n/*\nchange text and color to corresponding placeholder which is already initialize\nsize param is optional\n*/\nfunc setUpdate(str\u003cString\u003e, color\u003cUIColor\u003e, contentColor\u003cUIColor\u003e)\nfunc setUpdate(str\u003cString\u003e, color\u003cUIColor\u003e, contentColor\u003cUIColor\u003e, size\u003cCGFloat?\u003e)\n\n/*\nchange your placeholder text with your preferred length of characters which is already initialize\n*/\nsetUpdateTextLength(count\u003cInt\u003e)\n\n```\n\nsee Example project for more detail in initialization\n\n## Support\n- Updated occasionally for more functionality\n\n\n## Credits\n- Creator Yoseph Wijaya (Swift 3.0)\n- BMInitialPlaceHoldersView (Objective-C)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsnull0%2Fywnameplaceholder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsnull0%2Fywnameplaceholder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsnull0%2Fywnameplaceholder/lists"}