{"id":25743865,"url":"https://github.com/leoho0722/swiftcodetool","last_synced_at":"2026-06-10T18:32:16.584Z","repository":{"id":62728399,"uuid":"477401727","full_name":"leoho0722/SwiftCodeTool","owner":"leoho0722","description":"iOS App 開發練習 − 常用的 Function、Code Snippets、Xcode Template","archived":false,"fork":false,"pushed_at":"2022-12-02T04:23:27.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T10:39:14.730Z","etag":null,"topics":["code-snippets","ios","swift","uikit","xcode","xctemplate"],"latest_commit_sha":null,"homepage":"","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/leoho0722.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}},"created_at":"2022-04-03T16:38:47.000Z","updated_at":"2022-11-05T06:47:48.000Z","dependencies_parsed_at":"2023-01-23T06:01:22.582Z","dependency_job_id":null,"html_url":"https://github.com/leoho0722/SwiftCodeTool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leoho0722/SwiftCodeTool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoho0722%2FSwiftCodeTool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoho0722%2FSwiftCodeTool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoho0722%2FSwiftCodeTool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoho0722%2FSwiftCodeTool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoho0722","download_url":"https://codeload.github.com/leoho0722/SwiftCodeTool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoho0722%2FSwiftCodeTool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34165482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["code-snippets","ios","swift","uikit","xcode","xctemplate"],"created_at":"2025-02-26T10:31:20.920Z","updated_at":"2026-06-10T18:32:16.560Z","avatar_url":"https://github.com/leoho0722.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftCodeTool\n\niOS App 開發練習 − 常用的 Function、Code Snippets、Xcode Template\n\n## Code Snippets\n\n使用方法：\n\n1. Command + Q 關閉 Xcode\n2. 打開 Finder\n3. 前往 ```~/Library/Developer/Xcode/UserData/CodeSnippets```\n4. 將 Swift Code Snippets 資料夾內副檔名為 ```.codesnippets``` 的檔案複製到該目錄底下\n5. 在 Xcode 內舒服使用\n\n## Xcode Template\n\nController Previews.xctemplate 使用方法：\n\n1. 打開 Finder\n2. 前往 ```/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates```\n3. 將 Xcode Template 資料夾內副檔名為 ```.xctemplate``` 的檔案複製到該目錄下\n4. 在 Xcode 內 New -\u003e File，滑到最底下選擇 Previews 模板\n5. Controller 輸入要預覽畫面的 UIViewController class 名稱\n6. 將檔名命名為 UIViewController class 名稱 + Previews 以方便辨認是哪個畫面的預覽 (Ex：MainViewControllerPreviews)\n7. 即可在 UIKit 的開發環境下，即時預覽修改完的 UI 畫面，不用透過模擬器／實機執行才知道\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoho0722%2Fswiftcodetool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoho0722%2Fswiftcodetool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoho0722%2Fswiftcodetool/lists"}