{"id":20545579,"url":"https://github.com/eonist/cellhider","last_synced_at":"2026-04-16T16:05:56.103Z","repository":{"id":93635055,"uuid":"260747515","full_name":"eonist/CellHider","owner":"eonist","description":"🙈 Hide cells in UITableView","archived":false,"fork":false,"pushed_at":"2021-03-11T14:47:49.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T15:52:46.361Z","etag":null,"topics":["uitableview","uitableviewcell","uitableviewcontroller"],"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/eonist.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":"2020-05-02T18:16:05.000Z","updated_at":"2024-11-22T06:29:06.000Z","dependencies_parsed_at":"2023-03-16T14:45:35.329Z","dependency_job_id":null,"html_url":"https://github.com/eonist/CellHider","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/eonist%2FCellHider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonist%2FCellHider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonist%2FCellHider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonist%2FCellHider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eonist","download_url":"https://codeload.github.com/eonist/CellHider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242150808,"owners_count":20080006,"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":["uitableview","uitableviewcell","uitableviewcontroller"],"created_at":"2024-11-16T01:52:42.188Z","updated_at":"2026-04-16T16:05:56.075Z","avatar_url":"https://github.com/eonist.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![codebeat badge](https://codebeat.co/badges/5d6d240e-3123-43d4-94f5-cb34ed074d7e)](https://codebeat.co/projects/github-com-passbook-cellhider-master)\n[![Tests](https://github.com/sentryco/CellHider/actions/workflows/Tests.yml/badge.svg)](https://github.com/sentryco/CellHider/actions/workflows/Tests.yml)\n\n# CellHider 🙈\nHide cells in UITableView\n\n### Installation:\n- SPM: `.package(url: \"https://github.com/passbook/CellHider.git\", .branch(\"master\"))`\n\n\n### Note:\n\n```swift\nextension TableView {\n   /**\n    * On cell-tap\n    */\n   func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {\n      CellHider.hide(table: self, indexPaths: [indexPath], isHidden: true) // hides cells you click\n   }\n   /**\n    * Returns the height of each cell\n    * - Note: we have to set height to zero when hiding cells\n    */\n   func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -\u003e CGFloat {\n      let cell = self.subviews.compactMap { $0 as? UITableViewCell }.first { self.indexPath(for: $0) == indexPath } // this is the only way to get access to cell during creation\n      return cell?.isHidden ?? false ? CGFloat.leastNonzeroMagnitude : 60 // or use UITable.automatic...\n   }\n}\n```\n\n### Fun fact:\n- An alternative name idea for this repo was: \"peek-a-boo\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonist%2Fcellhider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feonist%2Fcellhider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonist%2Fcellhider/lists"}