{"id":25764664,"url":"https://github.com/ipedro/uikitview","last_synced_at":"2026-05-19T09:10:23.683Z","repository":{"id":87809374,"uuid":"579095090","full_name":"ipedro/UIKitView","owner":"ipedro","description":"A Wrapper for using UIKit views in SwiftUI","archived":false,"fork":false,"pushed_at":"2022-12-23T17:56:14.000Z","size":1281,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T02:39:45.447Z","etag":null,"topics":["swiftui","swiftui-uikit","swiftui-uikit-wrapper","uikit","wrapper"],"latest_commit_sha":null,"homepage":"https://ipedro.github.io/UIKitView/documentation/uikitview/","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/ipedro.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":"2022-12-16T16:40:35.000Z","updated_at":"2023-03-23T08:50:38.000Z","dependencies_parsed_at":"2023-07-05T12:47:12.115Z","dependency_job_id":null,"html_url":"https://github.com/ipedro/UIKitView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ipedro/UIKitView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipedro%2FUIKitView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipedro%2FUIKitView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipedro%2FUIKitView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipedro%2FUIKitView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipedro","download_url":"https://codeload.github.com/ipedro/UIKitView/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipedro%2FUIKitView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33209627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:54:09.561Z","status":"ssl_error","status_checked_at":"2026-05-19T07:54:08.508Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["swiftui","swiftui-uikit","swiftui-uikit-wrapper","uikit","wrapper"],"created_at":"2025-02-26T21:19:46.170Z","updated_at":"2026-05-19T09:10:23.656Z","avatar_url":"https://github.com/ipedro.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UIKitView\n\n## Documentation\n\nhttps://ipedro.github.io/UIKitView/documentation/uikitview/\n\nSample usage:\n\n![Sample usage](./Docs/sample_usage.png)\n\n```swift\nvar body: some View {\n    ScrollView {\n        VStack(spacing: 36) {\n            UIKitView {\n                UILabel()\n            } then: {\n                $0.adjustsFontForContentSizeCategory = true\n                $0.numberOfLines = 0\n                $0.attributedText = NSAttributedString(\n                    string: \"Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer\",\n                    attributes: [\n                        .underlineStyle: NSNumber(value: 1),\n                        .font: UIFont.preferredFont(forTextStyle: .headline),\n                        .foregroundColor: UIColor.systemBackground,\n                        .backgroundColor: UIColor.systemGreen.withAlphaComponent(0.25)\n                    ]\n                )\n            }\n            .padding()\n            .background(Color.accentColor)\n            .cornerRadius(24)\n            \n            UIKitView(traits: .fixedSize()) {\n                UISwitch()\n            } then: {\n                $0.backgroundColor = .systemRed.withAlphaComponent(0.1)\n            }\n            \n            \n            UIKitView {\n                UISwitch()\n            } then: {\n                $0.backgroundColor = .systemRed.withAlphaComponent(0.1)\n            }\n            \n            HStack(spacing: 24) {\n                // Body Text\n                Text(\"Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type.\")\n                \n                // Should look and behave exactly the same\n                UIKitView {\n                    UILabel()\n                } then: {\n                    $0.font = .preferredFont(forTextStyle: .body)\n                    $0.adjustsFontForContentSizeCategory = true\n                    $0.numberOfLines = 0\n                    $0.text = \"Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type.\"\n                }\n            }\n            \n            HStack(spacing: 24) {\n                UIKitView(traits: .flexible(layoutPriority: .fittingSizeLevel)) {\n                    UIImageView(image: .init(systemName: \"checkmark\"))\n                } then: {\n                    $0.contentMode = .scaleAspectFill\n                }\n                .padding()\n                .background(Color.primary.opacity(0.1))\n                .aspectRatio(contentMode: .fill)\n                \n                UIKitView {\n                    UILabel()\n                } then: {\n                    $0.adjustsFontForContentSizeCategory = true\n                    $0.numberOfLines = 0\n                    $0.text = \"Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type.\"\n                }\n            }\n        }\n        .padding()\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipedro%2Fuikitview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipedro%2Fuikitview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipedro%2Fuikitview/lists"}