{"id":22112109,"url":"https://github.com/fourplusone/rasterize","last_synced_at":"2026-05-04T19:40:14.910Z","repository":{"id":63910199,"uuid":"319917280","full_name":"fourplusone/rasterize","owner":"fourplusone","description":"Create rasterized versions of SwiftUI views","archived":false,"fork":false,"pushed_at":"2020-12-09T10:21:51.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-23T01:38:32.981Z","etag":null,"topics":["swift","swiftui"],"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/fourplusone.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":"2020-12-09T10:14:39.000Z","updated_at":"2021-05-20T17:27:45.000Z","dependencies_parsed_at":"2022-11-29T07:11:28.392Z","dependency_job_id":null,"html_url":"https://github.com/fourplusone/rasterize","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fourplusone/rasterize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourplusone%2Frasterize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourplusone%2Frasterize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourplusone%2Frasterize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourplusone%2Frasterize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fourplusone","download_url":"https://codeload.github.com/fourplusone/rasterize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourplusone%2Frasterize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32622724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","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":["swift","swiftui"],"created_at":"2024-12-01T10:56:43.288Z","updated_at":"2026-05-04T19:40:14.893Z","avatar_url":"https://github.com/fourplusone.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rasterize\n\n![Swift](https://github.com/fourplusone/rasterize/workflows/Swift/badge.svg)\n\nCreate rasterized versions of SwiftUI views\n\n## Example\n\n```swift\nimport SwiftUI\nimport Rasterize\n\nstruct ContentView: View {\n    let gradient = LinearGradient(gradient: Gradient(colors: [Color.red, Color.blue]), startPoint: .top, endPoint: .bottom)\n\n    var body: some View {\n        ZStack {\n            Rectangle()\n                .fill(gradient)\n                .cornerRadius(10)\n\n            Text(\"10\")\n                .foregroundColor(.white)\n                .font(.system(size: 30))\n                .rotationEffect(Angle(degrees: -30))\n        }\n        .frame(width: 100, height: 100)\n    }\n}\n\ntry Rasterized(view: ContentView())\n    .bitmapRepresentation().representation(using: .png,\n    properties: [:])?\n.write(to: URL(fileURLWithPath: \"/tmp/demo.png\"))\n```\n\n## Usage \n\nThis package is available via SwiftPM\n```swift\ndependencies: [\n    .package(url: \"https://github.com/fourplusone/rasterize.git\", from: \"0.1.0\")\n]\n```\n\n## License\n\nThis project is licensed under the MIT License. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourplusone%2Frasterize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffourplusone%2Frasterize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourplusone%2Frasterize/lists"}