{"id":21801994,"url":"https://github.com/illescasdaniel/customizablealertcontroller","last_synced_at":"2025-09-10T03:38:09.506Z","repository":{"id":119505363,"uuid":"116592075","full_name":"illescasDaniel/CustomizableAlertController","owner":"illescasDaniel","description":"Hacking the UIAlertController to fully customize it","archived":false,"fork":false,"pushed_at":"2018-10-29T08:27:49.000Z","size":984,"stargazers_count":32,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T18:11:10.792Z","etag":null,"topics":["hacking","ios","swift","uialertcontroller"],"latest_commit_sha":null,"homepage":null,"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/illescasDaniel.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,"zenodo":null}},"created_at":"2018-01-07T19:15:25.000Z","updated_at":"2025-02-12T10:14:36.000Z","dependencies_parsed_at":"2023-03-13T12:40:06.510Z","dependency_job_id":null,"html_url":"https://github.com/illescasDaniel/CustomizableAlertController","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/illescasDaniel/CustomizableAlertController","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illescasDaniel%2FCustomizableAlertController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illescasDaniel%2FCustomizableAlertController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illescasDaniel%2FCustomizableAlertController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illescasDaniel%2FCustomizableAlertController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/illescasDaniel","download_url":"https://codeload.github.com/illescasDaniel/CustomizableAlertController/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illescasDaniel%2FCustomizableAlertController/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274407505,"owners_count":25279296,"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-10T02:00:12.551Z","response_time":83,"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":["hacking","ios","swift","uialertcontroller"],"created_at":"2024-11-27T11:22:03.967Z","updated_at":"2025-09-10T03:38:09.484Z","avatar_url":"https://github.com/illescasDaniel.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  CustomizableAlertController\n\nHacking the UIAlertController to fully customize it!\n\n## Screenshot\n\u003cimg src=\"Screenshots/CustomAlertController.png\" width=\"350\"\u003e\n\n## Example\n\n```swift\nlet customAlertController = CustomizableAlertController(title: \"Do you want to do X?\", message: \":D hii\", preferredStyle: .alert)\ncustomAlertController.addAction(title: \"Yes\", style: .default, image: X)\ncustomAlertController.addAction(title: \"Cancel\", style: .cancel)\n\nlet greenAction = UIAlertAction(title: \"I'm green!\", style: .default)\ncustomAlertController.addAction(greenAction)\n\nlet labelElement = UILabel(frame: CGRect(x: 0, y: 0, width: 50, height: 20))\nlabelElement.text = \"Hii!!\"\nlabelElement.textColor = .white\ngreenAction.accessoryView = labelElement\n\ncustomAlertController.addParallaxEffect(x: 20, y: 20)\n\nself.present(customAlertController, animated: true)\n\n// customAlertController.lazyContentView?.backgroundColor = .red\n\ncustomAlertController.titleAttributes += [\n     StringAttribute(key: .font, value: UIFont.boldSystemFont(ofSize: 17), range: NSRange(location: \"Do \".count, length: \"you\".count)),\n    StringAttribute(key: .font, value: UIFont.boldSystemFont(ofSize: 17), range: NSRange(location: \"Do you want to do \".count, length: \"X\".count))\n]\n\ncustomAlertController.messageAttributes += [\n    StringAttribute(key: .foregroundColor, value: UIColor.orange, range: NSRange(location: 0, length: 3))\n]\n\ngreenAction.titleAttributes = [\n    StringAttribute(key: .foregroundColor, value: UIColor.green)\n]\n```\n\n### Medium article\n\nhttps://medium.com/@Daniel_illescas/hacking-ios-alerts-with-swift-61aefce9736a\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillescasdaniel%2Fcustomizablealertcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fillescasdaniel%2Fcustomizablealertcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillescasdaniel%2Fcustomizablealertcontroller/lists"}