{"id":23108017,"url":"https://github.com/donggyushin/dgpreview","last_synced_at":"2025-08-16T17:32:14.290Z","repository":{"id":43953429,"uuid":"458746691","full_name":"donggyushin/DGPreview","owner":"donggyushin","description":"Make UIKit project enable preview feature of SwiftUI","archived":false,"fork":false,"pushed_at":"2022-02-13T08:46:55.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-11T17:50:27.625Z","etag":null,"topics":["preview","previewer","swift"],"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/donggyushin.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-02-13T08:01:23.000Z","updated_at":"2022-02-14T19:45:29.000Z","dependencies_parsed_at":"2022-08-26T01:20:55.055Z","dependency_job_id":null,"html_url":"https://github.com/donggyushin/DGPreview","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donggyushin%2FDGPreview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donggyushin%2FDGPreview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donggyushin%2FDGPreview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donggyushin%2FDGPreview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donggyushin","download_url":"https://codeload.github.com/donggyushin/DGPreview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230047178,"owners_count":18164575,"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":["preview","previewer","swift"],"created_at":"2024-12-17T01:17:02.830Z","updated_at":"2024-12-17T01:17:04.613Z","avatar_url":"https://github.com/donggyushin.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DGPreview\nMake UIKit project enable preview feature of SwiftUI\n\n![Group 1](https://user-images.githubusercontent.com/34573243/153745535-c3de8c2a-4619-40cb-a4e9-0b21cd4b36a1.png)\n\n\n## Requirements\n- iOS 13 +\n- Swift 5 +\n- Xcode 13 +\n\n## Installaction\n\n### SPM\n```\nFile \u003e Add Packages \u003e https://github.com/donggyushin/DGPreview\n```\n\n### CocoaPod\n```\npod 'DGPreview', :git =\u003e 'https://github.com/donggyushin/DGPreview'\n```\n\n## Usage\n\n### UIView\n```\nimport SwiftUI\nimport DGPreview\n\nstruct MyButtonPreview: PreviewProvider {\n    static var previews: some View {\n        DGPreview {\n            return MyButton()\n        }.previewLayout(.sizeThatFits)\n    }\n}\n```\n\n### UIViewController\n```\nimport SwiftUI\nimport DGPreview\n\nstruct ViewControllerPreview: PreviewProvider {\n    static var previews: some View {\n        ViewController().showDGPreview(.iPhone13Pro)\n    }\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonggyushin%2Fdgpreview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonggyushin%2Fdgpreview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonggyushin%2Fdgpreview/lists"}