{"id":16279185,"url":"https://github.com/cozzin/uihosting","last_synced_at":"2025-09-08T05:33:15.692Z","repository":{"id":101129525,"uuid":"395919057","full_name":"cozzin/UIHosting","owner":"cozzin","description":"🖼 Using SwiftUI in UITableViewCell","archived":false,"fork":false,"pushed_at":"2023-06-15T00:12:46.000Z","size":35,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T08:51:26.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://medium.com/@hongseongho/uitableviewcell%EC%97%90%EC%84%9C-swiftui-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0-43321a9e9e90","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cozzin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-08-14T06:49:18.000Z","updated_at":"2024-07-30T02:30:56.000Z","dependencies_parsed_at":"2024-10-10T19:10:48.981Z","dependency_job_id":null,"html_url":"https://github.com/cozzin/UIHosting","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cozzin/UIHosting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cozzin%2FUIHosting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cozzin%2FUIHosting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cozzin%2FUIHosting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cozzin%2FUIHosting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cozzin","download_url":"https://codeload.github.com/cozzin/UIHosting/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cozzin%2FUIHosting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274136543,"owners_count":25228397,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-10T19:00:43.394Z","updated_at":"2025-09-08T05:33:15.410Z","avatar_url":"https://github.com/cozzin.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UIHosting\n\n⚠️ Now, it's better to use [UIHostingConfiguration](https://developer.apple.com/documentation/SwiftUI/UIHostingConfiguration). Here is WWDC session that describe how to use it https://developer.apple.com/videos/play/wwdc2022/10072/\n\n## 🚀 Motivation\n- Using SwiftUI in UITableViewCell\n- [UITableViewCell에서 SwiftUI 사용하기 - SwiftUI와 UIKit을 함께 사용하며 겪은 시행착오](https://medium.com/@hongseongho/uitableviewcell%EC%97%90%EC%84%9C-swiftui-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0-43321a9e9e90)\n\n## 🧰 Setup\n1. In your Xcode project, navigate to File \u003e Swift Packages \u003e Add Package Dependancy...\n2. Paste the following into the URL field: https://github.com/cozzin/UIHosting\n\n## 🧑‍💻 Usage\n```swift\nimport UIHosting\n\nprivate lazy var tableView: UITableView = {\n    let tableView = UITableView(frame: .zero, style: .plain)\n    tableView.register(UIHostingCell\u003cExampleSwiftUIRow\u003e.self, forCellReuseIdentifier: \"UIHostingCell\")\n    tableView.delegate = self\n    tableView.dataSource = self\n    return tableView\n}()\n\nfunc tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -\u003e UITableViewCell {\n    let cell = tableView.dequeueReusableCell(withIdentifier: \"UIHostingCell\", for: indexPath) as! UIHostingCell\u003cExampleSwiftUIRow\u003e\n    cell.configure(ExampleSwiftUIRow(count: data[indexPath.row]))\n    return cell\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcozzin%2Fuihosting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcozzin%2Fuihosting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcozzin%2Fuihosting/lists"}