{"id":13484487,"url":"https://github.com/HDCodePractice/OneTapSwiftUI","last_synced_at":"2025-03-27T16:30:53.846Z","repository":{"id":57864481,"uuid":"528189476","full_name":"HDCodePractice/OneTapSwiftUI","owner":"HDCodePractice","description":"SwiftUI一点通","archived":false,"fork":false,"pushed_at":"2022-11-20T13:58:13.000Z","size":546,"stargazers_count":44,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-30T18:42:42.229Z","etag":null,"topics":["apple","hacktoberfest","ios","swift","swift5","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HDCodePractice.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":"2022-08-23T22:58:32.000Z","updated_at":"2024-06-02T17:14:57.000Z","dependencies_parsed_at":"2023-01-22T17:46:09.470Z","dependency_job_id":null,"html_url":"https://github.com/HDCodePractice/OneTapSwiftUI","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HDCodePractice%2FOneTapSwiftUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HDCodePractice%2FOneTapSwiftUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HDCodePractice%2FOneTapSwiftUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HDCodePractice%2FOneTapSwiftUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HDCodePractice","download_url":"https://codeload.github.com/HDCodePractice/OneTapSwiftUI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245882285,"owners_count":20687860,"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","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":["apple","hacktoberfest","ios","swift","swift5","swiftui"],"created_at":"2024-07-31T17:01:25.135Z","updated_at":"2025-03-27T16:30:53.116Z","avatar_url":"https://github.com/HDCodePractice.png","language":"Swift","readme":"# OneTapSwiftUI\nSwiftUI一点通，您现在可以通过[TestFlight下载App](https://testflight.apple.com/join/smdKSsBL)。我会定期将版本发布到TestFlight上，历史版本可以在[Releases](https://github.com/HDCodePractice/OneTapSwiftUI/releases)中看到。\n\n## 贡献 Tap\n\n- 所有的Taps均在[SwiftUITapsPackage](https://github.com/HDCodePractice/SwiftUITapsPackage)中，如果使用Swift Playgrounds书写了新的Tap，你可以提交到本项目，如果是修改或使用Xcode，我们更希望您可以将相关的代码提交到[SwiftUITapsPackage](https://github.com/HDCodePractice/SwiftUITapsPackage)\n- 请前往[Apple SwiftUI索引](https://developer.apple.com/documentation/swiftui)了解分类，请将相应的View放入对应的Folder下\n- 每个Tap的名字应为 *Viewname*ControlView.swift\n- 每个Tap应该将不同的使用方式尽可能的展现出来，比如init时的参数以及常用的modifier，参见[VStackControlView.swift](https://github.com/HDCodePractice/SwiftUITapsPackage/blob/main/Sources/SwiftUITapsPackage/LayoutContainers/VStackControlView.swift)\n- 每个Tap如果你有了很不同的使用方式，欢迎增加不同的乐趣代码参见[ZStackDiceView.swift](https://github.com/HDCodePractice/SwiftUITapsPackage/blob/main/Sources/SwiftUITapsPackage/LayoutContainers/ZStackDiceView.swift)\n\n\n## 开发一个Tap\n\n### 使用Xcode Project\n\n- clone [OneTapSwiftUI](https://github.com/HDCodePractice/OneTapSwiftUI) 和 [](https://github.com/HDCodePractice/SwiftUITapsPackage) 到同一个目录中\n- 使用Xcode打开OneTapSwiftUI项目中的OneTapSwiftUIApp目录里的xcodeproj\n\n### 使用 swiftpm\n\n*注意事项*：Swift Playgrounds 4.1 还不支持SwiftUI 4.0 所以请使用 Xcode 14以上版本使用swiftpm\n\n- clone [OneTapSwiftUI](https://github.com/HDCodePractice/OneTapSwiftUI)\n- 使用Xcode打开swiftpm\n- 你可以在swiftpm里完成新Tap的开发，我会帮你将新的Tap加入到Package中去的\n- 在swiftpm中开发时，你需要显式的 `import SwiftUITapsPackage` 后就可以使用 `Components`和`Model`中的一系列组件了\n\n### 项目所使用的公用组件\n\n所有的公用View组件均在Components文件夹下，所有公用Model均在Model文件夹下。\n\n### 运行\n\n- 你可以通过[TestFlight下载测试版本](https://testflight.apple.com/join/smdKSsBL)\n- 也可以使用Swift Playgrounds或Xcode打开swiftpm来查看和运行\n- 当前也有一个Xcode项目用于支持App的编译发布\n\n","funding_links":[],"categories":["Swift"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHDCodePractice%2FOneTapSwiftUI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHDCodePractice%2FOneTapSwiftUI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHDCodePractice%2FOneTapSwiftUI/lists"}