{"id":29211884,"url":"https://github.com/tkgka/arrayflags","last_synced_at":"2025-07-02T22:05:56.661Z","repository":{"id":56902388,"uuid":"471343848","full_name":"tkgka/ArrayFlags","owner":"tkgka","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-20T16:21:31.000Z","size":49,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T11:18:09.043Z","etag":null,"topics":["cocoapods","flag","flags","swift"],"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/tkgka.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":"2022-03-18T11:36:00.000Z","updated_at":"2022-08-01T03:38:16.000Z","dependencies_parsed_at":"2022-08-21T02:50:54.498Z","dependency_job_id":null,"html_url":"https://github.com/tkgka/ArrayFlags","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tkgka/ArrayFlags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkgka%2FArrayFlags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkgka%2FArrayFlags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkgka%2FArrayFlags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkgka%2FArrayFlags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkgka","download_url":"https://codeload.github.com/tkgka/ArrayFlags/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkgka%2FArrayFlags/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263222468,"owners_count":23433028,"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":["cocoapods","flag","flags","swift"],"created_at":"2025-07-02T22:05:55.866Z","updated_at":"2025-07-02T22:05:56.649Z","avatar_url":"https://github.com/tkgka.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ArrayFlags\n\n[![CI Status](https://img.shields.io/travis/tkgka/ArrayFlags.svg?style=flat)](https://travis-ci.org/tkgka/ArrayFlags)\n[![Version](https://img.shields.io/cocoapods/v/ArrayFlags.svg?style=flat)](https://cocoapods.org/pods/ArrayFlags)\n[![License](https://img.shields.io/cocoapods/l/ArrayFlags.svg?style=flat)](https://cocoapods.org/pods/ArrayFlags)\n[![Platform](https://img.shields.io/cocoapods/p/ArrayFlags.svg?style=flat)](https://cocoapods.org/pods/ArrayFlags)\n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Ftkgka%2FArrayFlags\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false)](https://hits.seeyoufarm.com)\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## Installation\n\nArrayFlags is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'ArrayFlags'\n```\n\n## Usage\nFirst, add **import ArrayFlags** on every swift file you would like to use ArrayFlags.\n\nThen, use functions to return arrayed flags!\n\n**\"GetDictFlags\"** and **\"GetDictFlagsString\"** returns Dict type value and **\"GetArrayFlags\"** returns array value\n\nParameters:\n\nVal: Uint value which convert to array type\n\n```swift\nprint(\"GetDictFlags\",GetDictFlags(Val: NSEvent.modifierFlags.rawValue)) // return Seperated Flag value by Dict type\nprint(\"GetArrayFlags\",GetArrayFlags(Val: NSEvent.modifierFlags.rawValue)) //return arrayed Flag value\nprint(\"GetDictFlagsString\",GetDictFlagsString(Val: NSEvent.modifierFlags.rawValue)) // return pressed key value by Dict type\n```        \n![image](https://user-images.githubusercontent.com/52348220/159162961-72a69a55-4204-40d2-a3ae-844d96fcacf0.png)\n\n**\"GetDictFlagsString\"** function returns **L**, **R** or **B** for shift, ctrl, option and command flags\n\n**\"L\"** means Left key pressed\n\n**\"R\"** means Right key pressed\n\n**\"B\"** means Both key pressed\n\n## Author\n\ntkgka, ksh17171@gmail.com\n\n\n## License\n\nArrayFlags 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%2Ftkgka%2Farrayflags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkgka%2Farrayflags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkgka%2Farrayflags/lists"}