{"id":15561320,"url":"https://github.com/elangr/elangridview","last_synced_at":"2025-04-23T22:41:30.890Z","repository":{"id":56909933,"uuid":"107420074","full_name":"Elangr/ElanGridView","owner":"Elangr","description":"Simple GridView in swift","archived":false,"fork":false,"pushed_at":"2018-10-11T14:27:44.000Z","size":655,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-15T00:22:23.788Z","etag":null,"topics":["gridview","ios","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/Elangr.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-10-18T14:33:09.000Z","updated_at":"2023-02-10T13:22:48.000Z","dependencies_parsed_at":"2022-08-20T19:40:05.734Z","dependency_job_id":null,"html_url":"https://github.com/Elangr/ElanGridView","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elangr%2FElanGridView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elangr%2FElanGridView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elangr%2FElanGridView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elangr%2FElanGridView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elangr","download_url":"https://codeload.github.com/Elangr/ElanGridView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250528683,"owners_count":21445511,"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":["gridview","ios","swift4"],"created_at":"2024-10-02T16:07:25.505Z","updated_at":"2025-04-23T22:41:30.868Z","avatar_url":"https://github.com/Elangr.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![alt Elangr](http://elangr.com/images/logo-body.svg)\n\n\n# ElanGridView\n\n[![Version](https://img.shields.io/cocoapods/v/ElanGridView.svg?style=flat)](http://cocoapods.org/pods/ElanGridView)\n[![License](https://img.shields.io/cocoapods/l/ElanGridView.svg?style=flat)](http://cocoapods.org/pods/ElanGridView)\n[![Platform](https://img.shields.io/cocoapods/p/ElanGridView.svg?style=flat)](http://cocoapods.org/pods/ElanGridView)\n\n\n## ScreenShot\n\n![Kiku](ScreenShot/ElanGridView.png)\n![Kiku](ScreenShot/MultiSelection.png)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\nor use `pod try ElanGridView`\n\n## Sample Code\n\n```swift\nimport UIKit\nimport ElanGridView\n\nclass ViewController: UIViewController, ElanGridViewDelegate {\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        let elanGridview: ElanGridView = ElanGridView(frame: self.view.frame)\n        elanGridview.cellHeight = 250.0 // cards will match the parent height if cellHeight is not set or set to 0.0\n        elanGridView.cellWidth = 250.0 // cards will match the parent width if cellWidth is not set or set to 0.0\n        elanGridview.paddingTop = 20.0 // default value 10.0\n        elanGridview.paddingLeft = 20.0 // default value 10.0\n        elanGridview.paddingRight = 20.0 // default value 10.0\n        elanGridview.paddingBottom = 20.0 // default value 10.0\n        elanGridview.maxColumns = 10 // default value 1\n        elanGridview.allowsMultipleSelection = true // default value false\n        elanGridview.selectedColor = .red // default value UIColor(rgb: 0x0095ff)\n\n        self.view.addSubview(elanGridview)\n\n        elanGridview.elanGridViewDelegate = self\n        for i in (0..\u003c40){\n            elanGridview.addCell(){\n                cellView in\n                let testView: UILabel = UILabel(CGRect(x: 10, y: 10, width: 200, height: 100))\n                cellView.indexPath.tag = \"hello \\(i)\"\n                testView.text = \"\\(cellView.indexPath.row) \\(cellView.indexPath.column)\"\n\n                cellView.addSubview(testView)\n            }\n        }\n\n\n    }\n\n    func onTapCard(_ elanCard: ElanCard) {\n\n    }\n\n    func onLongPressCard(_ elanCard: ElanCard) {\n\n    }\n\n    func selectedCards(_ selectedCards: [ElanIndex]) {\n\n    }\n\n\n\n}\n\n```\n\n## Installation\n\nElanGridView is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'ElanGridView'\n```\n\n## License\n\nElanGridView 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%2Felangr%2Felangridview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felangr%2Felangridview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felangr%2Felangridview/lists"}