{"id":20325155,"url":"https://github.com/swiftuix/swiftuiz","last_synced_at":"2025-04-11T19:42:26.404Z","repository":{"id":204419172,"uuid":"711808488","full_name":"SwiftUIX/SwiftUIZ","owner":"SwiftUIX","description":"Build incredible expansions to SwiftUI with this toolkit for framework developers.","archived":false,"fork":false,"pushed_at":"2025-02-20T08:06:30.000Z","size":771,"stargazers_count":23,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-25T15:49:11.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/SwiftUIX.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}},"created_at":"2023-10-30T08:09:49.000Z","updated_at":"2025-03-18T19:56:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"e83cf59a-4d4b-4f6c-a169-97ffe389d04e","html_url":"https://github.com/SwiftUIX/SwiftUIZ","commit_stats":null,"previous_names":["swiftuix/swiftuiz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUIX%2FSwiftUIZ","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUIX%2FSwiftUIZ/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUIX%2FSwiftUIZ/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUIX%2FSwiftUIZ/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SwiftUIX","download_url":"https://codeload.github.com/SwiftUIX/SwiftUIZ/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248468532,"owners_count":21108835,"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":[],"created_at":"2024-11-14T19:38:55.404Z","updated_at":"2025-04-11T19:42:26.373Z","avatar_url":"https://github.com/SwiftUIX.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!WARNING]\n\u003e While a large portion of this package is production ready, the package and its documentation is still in alpha. \n\u003e\n\u003e Directly contact [@vmanot](http://twitter.com/vatsal_manot) for any queries related to this package.\n# SwiftUIZ\nA framework to support ambitious expansions to SwiftUI. Public API surface is production-ready.\n\n\u003c/br\u003e\n\n\u003c/br\u003e\n\n\u003e [!NOTE]\n\u003e This section is incomplete and is in active iteration.\n# Usage\n### `PreviewCatalogGroup`\n\n`PreviewCatalogGroup` is a `Scene` that automatically generates a navigated list of previews. \n\n\u003cimg width=\"890\" alt=\"Screenshot 2024-06-12 at 10 17 10 AM\" src=\"https://github.com/SwiftUIX/SwiftUIZ/assets/1157147/0aeae7e8-2f47-4d0e-a41a-6c36745fd717\"\u003e\u003cbr /\u003e\n\nSimply `import SwiftUIZ` and add `PreviewCatalogGroup()` to your `App`: \n```swift\nimport SwiftUIZ\n\n@main\nstruct MyProjectApp: App {\n    var body: some Scene {\n         // replace the WidowsGroup code with PreviewCatalogGroup()\n         // WindowGroup {\n         //     ContentView()\n         // }\n        PreviewCatalogGroup()\n    }\n}\n```\n\nTo make a SwiftUI view discoverable, annotate it with the `@RuntimeDiscoverable` macro. \n\nRuntime discoverable conform to `ViewPreview` instead of `View`. For example:\n\n```swift\nimport SwiftUIZ\n\n@RuntimeDiscoverable // property wrapper\nstruct MyView1: ViewPreview { // conforms to ViewPreview instead of View\n    // Optional - set custom title\n    // Name of the view (e.g. MyView1) is default\n    static var title: String {\n        \"Custom Title for My View 1\"\n    }\n    \n    var body: some View {\n        Text(\"My View 1\")\n    }\n}\n\n@RuntimeDiscoverable\nstruct MyView2: ViewPreview {\n    var body: some View {\n        Text(\"My View 2\")\n    }\n}\n\n@RuntimeDiscoverable\nstruct MyView3: ViewPreview {\n    var body: some View {\n        Text(\"My View 3\")\n    }\n}\n```\n\n\u003c/br\u003e\n\n# Acknowledgments\n\nThis library wouldn't be possible without these incredible OSS projects that I'm building upon.\n\n\u003cdetails\u003e\n\u003csummary\u003eMarkdownUI by @gonzalezreal\u003c/summary\u003e\n\n- **Link**: (swift-markdown-ui)[https://github.com/gonzalezreal/swift-markdown-ui]\n- **License**: [MIT License](https://github.com/gonzalezreal/swift-markdown-ui/blob/main/LICENSE)\n- **Authors**: @gonzalezreal\n- **Notes**: \n  - `BlockSequence` no longer uses a `VStack`, allowing for lazy loading of large Markdown content via `LazyVStack { ... }`.\n  - Integration of SwiftUIX for advanced view caching and Nuke for efficient remote image loading.\n  - The result builder DSL has been removed.\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eSwiftUI-Macros by @Wouter01\u003c/summary\u003e\n\n- **Link**: [SwiftUI-Macros-ui](https://github.com/Wouter01/SwiftUI-Macros)\n- **License**: [MIT License](https://github.com/Wouter01/SwiftUI-Macros/blob/main/LICENSE)\n- **Authors**: @Wouter01\n- **Notes**:\n  - `EnvironmentValues`, `EnvironmentKey`, `EnvironmentStorage` and `EnvironmentValues` are used.\n  - Rather than add `Wouter01`'s (fantastic!) library to **SwiftUIZ** as a dependency, I chose to inline it for a couple of reasons:\n    - `swift-syntax` does not have a stable API surface as of writing this, resulting in irreconcilable conflicts during dependency resolution.\n    - SwiftPM is slow as f*** at package resolution, I'm going to avoid adding any dependencies for 1-3 file packages.\n    - The implementation is going to fork ways and leverage `SwiftSyntaxUtilities` from [Swallow](http://github.com/vmanot/Swallow) to make it even more concise.\n \n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftuix%2Fswiftuiz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftuix%2Fswiftuiz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftuix%2Fswiftuiz/lists"}