{"id":27615705,"url":"https://github.com/nuplay/linkpreview","last_synced_at":"2025-10-18T21:44:01.044Z","repository":{"id":118616650,"uuid":"436086851","full_name":"NuPlay/LinkPreview","owner":"NuPlay","description":"Preview with Link's meta information.(SwiftUI)","archived":false,"fork":false,"pushed_at":"2022-01-30T06:59:13.000Z","size":39,"stargazers_count":44,"open_issues_count":2,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T10:05:40.694Z","etag":null,"topics":["link","safari","sfsafariviewcontroller","swift","swiftpackagemanager","swiftui","uicomponent","webview","wkwebview"],"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/NuPlay.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,"zenodo":null}},"created_at":"2021-12-08T02:10:14.000Z","updated_at":"2025-07-03T14:15:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa8bf40f-7049-4b0a-905f-afc05c1e4b9b","html_url":"https://github.com/NuPlay/LinkPreview","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/NuPlay/LinkPreview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NuPlay%2FLinkPreview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NuPlay%2FLinkPreview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NuPlay%2FLinkPreview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NuPlay%2FLinkPreview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NuPlay","download_url":"https://codeload.github.com/NuPlay/LinkPreview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NuPlay%2FLinkPreview/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266081349,"owners_count":23873517,"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":["link","safari","sfsafariviewcontroller","swift","swiftpackagemanager","swiftui","uicomponent","webview","wkwebview"],"created_at":"2025-04-23T03:57:44.229Z","updated_at":"2025-10-18T21:43:55.995Z","avatar_url":"https://github.com/NuPlay.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e LinkPreview(SwiftUI)\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/NuPlay/LinkPreview/releases/latest\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/v/release/NuPlay/LinkPreview?label=version\u0026labelColor=303840\" alt=\"version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://swift.org/\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Swift-5.1+-F05138?labelColor=303840\" alt=\"Swift: 5.1+\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.apple.com/ios/\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/iOS-14.0+-007AFF?labelColor=303840\" alt=\"iOS: 14.0+\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/NuPlay/LinkPreview?color=blue\u0026labelColor=303840\" alt=\"license\"\u003e        \n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003e Preview with Link's meta information. \u003c/h3\u003e\n\n\n| ![IMG_0458](https://user-images.githubusercontent.com/73557895/145139791-93841950-02da-423b-8b4e-da1764073bd6.png) \t| ![example](https://user-images.githubusercontent.com/73557895/145139131-60038507-92ea-4ab0-9b8e-9a9b7cc7b9ac.gif) \t|\n|--------------------------------------------------------------------------------------------------------------------\t|-------------------------------------------------------------------------------------------------------------------\t|\n| Image                                                                                                              \t| Gif                                                                                                               \t|\n\n\n## Get Started\n\n```swift\nimport SwiftUI\nimport LinkPreview\n\nstruct LinkPreview_Test: View {\n    @State private var size: CGFloat = 350\n    \n    var body: some View {\n        ZStack(alignment: .bottom){\n            ScrollView{\n                VStack{\n                    LinkPreview(url: URL(string: \"https://github.com/NuPlay/RichText\"))\n                        .backgroundColor(.blue)\n                        .primaryFontColor(.white)\n                        .secondaryFontColor(.white.opacity(0.6))\n                        .titleLineLimit(3)\n                        .frame(width: size, alignment: .center)\n                    \n                    LinkPreview(url: URL(string: \"https://github.com/NuPlay/ExpandableText\"))\n                        .titleLineLimit(20)\n                        .frame(width: size, alignment: .center)\n                        .type(.small)\n                    \n                    LinkPreview(url: URL(string: \"https://github.com/NuPlay/SwiftUI-SlideText\"))\n                }\n                .padding(.horizontal, 24)\n            }\n            \n            Slider(value: $size , in: 100...400, step: 1)\n                .padding(.horizontal, 24)\n        }\n    }\n}\n\n```\n\n## Modifier(optional)\n\nModifier | Default\n--- | ---\n`.backgroundColor(_ backgroundColor: Color)` | `Color(.systemGray5)`\n`.primaryFontColor(_ primaryFontColor: Color)` | `.primary`\n`.secondaryFontColor(_ secondaryFontColor: Color)` | `.gray`\n`.titleLineLimit(_ titleLineLimit: Int)` | `3`\n`.type(_ type: LinkPreviewType(customType[.large, .small, .auto]))` | `.auto`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuplay%2Flinkpreview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuplay%2Flinkpreview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuplay%2Flinkpreview/lists"}