{"id":18031764,"url":"https://github.com/dagronf/dsflicensekeyview","last_synced_at":"2025-03-27T05:30:58.780Z","repository":{"id":149491844,"uuid":"162389112","full_name":"dagronf/DSFLicenseKeyView","owner":"dagronf","description":"macOS License control for Objective-C/Swift","archived":false,"fork":false,"pushed_at":"2019-01-09T00:36:16.000Z","size":4381,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T06:24:26.623Z","etag":null,"topics":["interface-builder","license","macos","objc","objective-c","swift"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/dagronf.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-19T05:51:38.000Z","updated_at":"2024-01-30T10:56:34.000Z","dependencies_parsed_at":"2023-05-27T00:00:50.049Z","dependency_job_id":null,"html_url":"https://github.com/dagronf/DSFLicenseKeyView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagronf%2FDSFLicenseKeyView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagronf%2FDSFLicenseKeyView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagronf%2FDSFLicenseKeyView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagronf%2FDSFLicenseKeyView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dagronf","download_url":"https://codeload.github.com/dagronf/DSFLicenseKeyView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245056889,"owners_count":20553855,"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":["interface-builder","license","macos","objc","objective-c","swift"],"created_at":"2024-10-30T10:10:42.610Z","updated_at":"2025-03-27T05:30:58.772Z","avatar_url":"https://github.com/dagronf.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# macOS Cocoa License Key Control\n\n![Simple License Key](https://raw.githubusercontent.com/dagronf/dagronf.github.io/master/art/projects/DSFLicenceField/simple.png)\n\n![Simple License Key in action](https://raw.githubusercontent.com/dagronf/dagronf.github.io/master/art/projects/DSFLicenceField/preview.gif)\n\n### Configurable in IB and via code\n\n* Number of license segments\n* Number of characters in a segment\n* Placeholder character\n* (Optional) Highlighting if the licence key is invalid\n\n## Usage\n\n### Read-only\n\n#### Objective-C\n\n    [DSFLicenseKeyControlView createWithName:@\"Eight by Three License Key\"\n                                segmentCount:3\n                                 segmentSize:8\n                                         key:@\"ABCDEFGH-IJKLMNOP-QRSTUVWX\"];\n\n#### Swift\n\n    DSFLicenseKeyControlView.create(withName: \"Eight by Three License Key\",\n                                    segmentCount: 3,\n                                    segmentSize: 8,\n                                    key: \"ABCDEFGH-IJKLMNOP-QRSTUVWX\")\n\n### Mutable (editable)\n\n#### Objective-C\n\n    [DSFMutableLicenseKeyControlView createMutableWithName:@\"Four by Six License Key\"\n                                              segmentCount:4\n                                               segmentSize:6\n                                                       key:@\"123456-ABCDEF-CATDOG-NOODLE\"];\n\n#### Swift\n\n     DSFMutableLicenseKeyControlView.createMutable(withName: \"Four by Six License Key\",\n                                                   segmentCount: 4,\n                                                   segmentSize: 6,\n                                                   key: \"123456-ABCDEF-CATDOG-NOODLE\")\n\n### Integration with Interface Builder\n\nThese provide interface builder inspectables, so that you can :-\n\n1. Configure your license key field within IB\n2. Preview your license key directly in your view\n\n![License Key preview in Interface Builder](https://raw.githubusercontent.com/dagronf/dagronf.github.io/master/art/projects/DSFLicenceField/interface_builder.png)\n\n### Preview your license key\n\nUse Interface Builder to build your views live\n\n![License Key preview in Interface Builder in action](https://raw.githubusercontent.com/dagronf/dagronf.github.io/master/art/projects/DSFLicenceField/interface_builder_preview.png)\n\n## Keyboard navigation\n\n* Tab between the fields in your license key\n* When a field is filled, moves automatically to the next field\n\n![Keyboard navigation](https://raw.githubusercontent.com/dagronf/dagronf.github.io/master/art/projects/DSFLicenceField/keyboard_navigation.gif)\n\n## Paste support\n\nYou can copy and paste your license key into a field, and if the copied key matches the settings, will properly fill the fields\n\n![Copy and paste support](https://raw.githubusercontent.com/dagronf/dagronf.github.io/master/art/projects/DSFLicenceField/paste_support.gif)\n\n## Voiceover support\n\nComes with Voiceover support out-of-the-box, meaning that your visually impaired users can use your app straight away.\n\n## Acknowlegements\n\nUses [`RSVerticallyCenteredTextFieldCell`](https://red-sweater.com/blog/148/what-a-difference-a-cell-makes) by Daniel Jalkut of Red Sweater Software \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdagronf%2Fdsflicensekeyview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdagronf%2Fdsflicensekeyview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdagronf%2Fdsflicensekeyview/lists"}