{"id":20180213,"url":"https://github.com/iamshezad/shselectionindicator","last_synced_at":"2025-04-10T04:53:10.582Z","repository":{"id":201616403,"uuid":"147166318","full_name":"iamshezad/SHSelectionIndicator","owner":"iamshezad","description":"Selection Indicator using an imageView.","archived":false,"fork":false,"pushed_at":"2018-09-06T11:07:31.000Z","size":1659,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-10-19T23:08:44.109Z","etag":null,"topics":["indicator","selection","swift4"],"latest_commit_sha":null,"homepage":null,"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/iamshezad.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}},"created_at":"2018-09-03T07:17:03.000Z","updated_at":"2023-10-20T00:56:47.661Z","dependencies_parsed_at":null,"dependency_job_id":"e265ba64-b180-4667-92e4-31ca0f7bba13","html_url":"https://github.com/iamshezad/SHSelectionIndicator","commit_stats":null,"previous_names":["iamshezad/shselectionindicator"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamshezad%2FSHSelectionIndicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamshezad%2FSHSelectionIndicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamshezad%2FSHSelectionIndicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamshezad%2FSHSelectionIndicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamshezad","download_url":"https://codeload.github.com/iamshezad/SHSelectionIndicator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224555482,"owners_count":17330810,"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":["indicator","selection","swift4"],"created_at":"2024-11-14T02:29:38.315Z","updated_at":"2024-11-14T02:29:38.967Z","avatar_url":"https://github.com/iamshezad.png","language":"Swift","readme":"# SHSelectionIndicator\nSelection Indicator using an imageView.\n\n[![Swift 4.0](https://img.shields.io/badge/Swift-4-orange.svg?style=flat)](https://developer.apple.com/swift/)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n[![Platform](https://img.shields.io/badge/platform-ios-blue.svg?style=flat)]()\n\n\u003cimg src=\"/Screenshots/Sample1.png\" /\u003e \n\n## Demo\n\u003cimg src=\"/Screenshots/sample1.gif\" /\u003e\n\n## Installation\nJust drag and drop the SHSelectionIcon.swift file from SHSelectionIndicator folder to your project.\n#### Cocoapods - updating soon\n\n## Usage\n\n1. a- You can use by drag and drop an imageView in storyboard and set image class to SHSelectionIcon and set an outlet for the imageView\n   b-  Or you can initialize using a variable like below:\n   ```swift\n   var selection = SHSelectionIcon()\n   ```\n2. a- You can set selection indicator icon height and width.\n    for example:\n    ```swift\n    selection.selectionIconHeight = 30 //By default 30 for both height and width\n    selection.selectionIconWidth = 30\n    ```\n    b- You can set selection indicator icon direction.\n    for example: \n    ```swift\n    selection.pointerDirection = .vertical //.vertical and .horizontal are available\n    ```\n    c- You can set selection indicator icon Image.\n    for example:\n    ```swift\n    selection.image = UIImage(named: \"icon\")\n    ```\n    d- You can set selection indicator icon initial selected button\n    for example:\n    ```swift\n    selection.initialButton(object: sampleButtons[0]) //Here sample buttons is a collection of buttons\n    ```\n3. Change the selection indicator icon to selected button\n    call a method setSelection(object: buttonObject) inside button action with its buttonObject\n    for example:\n    ```swift\n    selection.setSelection(object: sender) //this method is called inside action of selected button\n    ```\n    try using sample projeect to know the working.\n    \n## Requirements\n\n* iOS 10.0+\n\n## Example\n\nDownload the Sample project.\n\n## Contact\n\nMail me @: shezadahamed95@gmail.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamshezad%2Fshselectionindicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamshezad%2Fshselectionindicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamshezad%2Fshselectionindicator/lists"}