{"id":19989285,"url":"https://github.com/marcsteven/swift-code-style-","last_synced_at":"2026-03-06T13:03:31.206Z","repository":{"id":185333001,"uuid":"54984674","full_name":"MarcSteven/swift-code-style-","owner":"MarcSteven","description":"swift代码规范","archived":false,"fork":false,"pushed_at":"2016-03-30T00:25:34.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T21:48:41.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/MarcSteven.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}},"created_at":"2016-03-29T14:53:01.000Z","updated_at":"2017-07-23T08:40:57.000Z","dependencies_parsed_at":"2023-08-01T14:52:30.403Z","dependency_job_id":null,"html_url":"https://github.com/MarcSteven/swift-code-style-","commit_stats":null,"previous_names":["marcsteven/swift-code-style-"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MarcSteven/swift-code-style-","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcSteven%2Fswift-code-style-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcSteven%2Fswift-code-style-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcSteven%2Fswift-code-style-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcSteven%2Fswift-code-style-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcSteven","download_url":"https://codeload.github.com/MarcSteven/swift-code-style-/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcSteven%2Fswift-code-style-/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30178286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T12:39:21.703Z","status":"ssl_error","status_checked_at":"2026-03-06T12:36:09.819Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-13T04:46:09.420Z","updated_at":"2026-03-06T13:03:31.177Z","avatar_url":"https://github.com/MarcSteven.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-代码规范\nswift时下成了许多iOS开发者中经常讨论的话题，诸如此类很多的会议也不时地在全世界在召开，许多人都在纠结到底是从OC开始还是从Swift开始呢？\n实际上而言，语言都有互通性，最大的差异莫过于语法上的差别，大学时代的教育总是从C开始，而C语言是编向底层的开发语言，而因为苹果公司的封装，很多东西你只知道结果，却不知为何会如此，这与安卓开发有很大的不同，但凡有点强迫症的人可能会受不了，但这就是现实，有些东西永远没有为什么，只要会用就好。\nswift自出生快2年了，可许多公司的项目都还在用OC，这当然主要针对的是老项目，毕竟一下子改确实精力有限，swift是未来，开发周期短，代码风格简化了很多，但这门语言并不简单，它继承了许多开发语言的优良传统，所以它是一门较为先进的语言，废话不多说，就我理解的东西，对此进行了一些总结，希望对于大家有所帮助，感谢大家支持。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcsteven%2Fswift-code-style-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcsteven%2Fswift-code-style-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcsteven%2Fswift-code-style-/lists"}