{"id":24756224,"url":"https://github.com/ajijoyo/ajcommonutils","last_synced_at":"2026-04-26T16:31:22.967Z","repository":{"id":56900478,"uuid":"147487314","full_name":"ajijoyo/AJCommonUtils","owner":"ajijoyo","description":"My Common Utils Mostly use ","archived":false,"fork":false,"pushed_at":"2019-06-27T04:41:55.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-25T03:53:46.136Z","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/ajijoyo.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":"2018-09-05T08:43:55.000Z","updated_at":"2019-06-27T04:39:11.000Z","dependencies_parsed_at":"2022-08-21T02:21:02.898Z","dependency_job_id":null,"html_url":"https://github.com/ajijoyo/AJCommonUtils","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ajijoyo/AJCommonUtils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajijoyo%2FAJCommonUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajijoyo%2FAJCommonUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajijoyo%2FAJCommonUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajijoyo%2FAJCommonUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajijoyo","download_url":"https://codeload.github.com/ajijoyo/AJCommonUtils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajijoyo%2FAJCommonUtils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32305032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-01-28T13:50:19.491Z","updated_at":"2026-04-26T16:31:22.951Z","avatar_url":"https://github.com/ajijoyo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AJCommonUtils\n\n[![Language](https://img.shields.io/badge/Swift-5-orange.svg)]()\n[![CI Status](https://img.shields.io/travis/ajijoyo/AJCommonUtils.svg?style=flat)](https://travis-ci.org/ajijoyo/AJCommonUtils)\n[![Version](https://img.shields.io/cocoapods/v/AJCommonUtils.svg?style=flat)](https://cocoapods.org/pods/AJCommonUtils)\n[![License](https://img.shields.io/cocoapods/l/AJCommonUtils.svg?style=flat)](https://cocoapods.org/pods/AJCommonUtils)\n[![Platform](https://img.shields.io/cocoapods/p/AJCommonUtils.svg?style=flat)](https://cocoapods.org/pods/AJCommonUtils)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n```\nXCode 9.4\nSwift 4\n```\n\n## Installation\n\nAJCommonUtils is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'AJCommonUtils' //for swift 5\npod 'AJCommonUtils', '~\u003e 0.1.3' //for swift 4++\n```\n\n## Used\n\n### Language\n\nSet `setDefaultLocale` at `didFinishLaunchingWithOptions` to initial Bundle spesific Language on first install \nby default value is `en` you should change prefered default language,\n\u003e Make sure you have settings `Localized.strings`  \n\u003e Everytime locale change you can observer using `NotificationCenter` with key `languageDidChanged`\n```swift\nLanguage.setDefaultLocale(language: \"id\")\n```\n\nfunction `setLocale` to set Bundle to spesific Language on runtime, non need to restart Apps\n\u003e Dont Forget to refresh entire UI after change language\n```swift\nLanguage.setLocale(language: \"en\")\n```\n  \nfunction `localized` to change Language based on `Localized.Strings` with selected `setLocale`\n```swift\nlet title = \"welcome.example.title\".localized\n\ntitleLabel.text = title\n```\n  \n### Color\n\ninit color by hexString,by default `alpha` is 1.0 it value start from 0 to 1.0\n\n```swift\nUIColor(hexString: #ffffff, alpha: 0.5)\n````\n\ninit color by RGB, by default `alpha` is 1.0 it value start from 0 to 1.0\n```swift\nUIColor(R: 255, G: 255, B: 255, alpha: 0.4)\n```\n\nextension of UIColor `lighter` change color more lighter not change alpha, default is 0.3 it value start from 0 to 1.0\n\n```swift\nUIColor.black.lighter(by: 0.3)\n```\n\nextension of UIColor `darker` change color more darker not change alpha, default is 0.3 it value start from 0 to 1.0\n\n```swift\nUIColor.black.darker(by: 0.3)\n```\n\n## Author\n\najijoyo, self.ajiejoy@gmail.com\n\n## License\n\nAJCommonUtils 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%2Fajijoyo%2Fajcommonutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajijoyo%2Fajcommonutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajijoyo%2Fajcommonutils/lists"}