{"id":21768106,"url":"https://github.com/below/darkuikit","last_synced_at":"2025-08-03T04:07:07.595Z","repository":{"id":219654862,"uuid":"749562685","full_name":"below/DarkUIKit","owner":"below","description":"How can I best create a dark mode image for a UIButton — with an svg file?","archived":false,"fork":false,"pushed_at":"2024-02-01T09:21:43.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T05:43:52.052Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/below.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":"2024-01-28T23:13:03.000Z","updated_at":"2024-01-28T23:13:08.000Z","dependencies_parsed_at":"2024-01-29T00:29:08.550Z","dependency_job_id":"1f370a60-9f18-428f-a0b0-2346442885a1","html_url":"https://github.com/below/DarkUIKit","commit_stats":null,"previous_names":["below/darkuikit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/below/DarkUIKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FDarkUIKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FDarkUIKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FDarkUIKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FDarkUIKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/below","download_url":"https://codeload.github.com/below/DarkUIKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FDarkUIKit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268492254,"owners_count":24258785,"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-08-03T02:00:12.545Z","response_time":2577,"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-11-26T13:33:35.363Z","updated_at":"2025-08-03T04:07:07.549Z","avatar_url":"https://github.com/below.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  DarkUIKit\n\n## Update: Fixed\n\nThe issue could simply be fixed by setting all assets to \"Render As Template Image\"\n\n## Prime Objective\n\nThe prime objective is to have a UIButton with an image that supports dark mode. \n\n## What I have tried so far\n\n* Created an image asset with a differently colored (and, for debugging purposes, differently shaped) image for the dark appearance\n\n* Created a color asset, and assigned it to the `UIButton`\n\nNone of these things work. While the icon is obviously changed, its color remains black, even in dark mode.\n\nThe color seems to have no effect on the image, even when the asset is set to \"Render as Template\"\n\n## Any ideas?\n\nDo you have any ideas to have an image that supports dark mode? Is PDF the solution? Or, gasp, png?\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelow%2Fdarkuikit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelow%2Fdarkuikit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelow%2Fdarkuikit/lists"}