Preview with Link's meta information with SwiftUI

Overview

LinkPreview(SwiftUI)

version Swift: 5.1+ iOS: 14.0+ license

Preview with Link's meta information.

IMG_0458 example
Image Gif

Get Started

import SwiftUI
import LinkPreview

struct LinkPreview_Test: View {
    @State private var size: CGFloat = 350
    
    var body: some View {
        ZStack(alignment: .bottom){
            ScrollView{
                VStack{
                    LinkPreview(url: URL(string: "https://github.com/NuPlay/RichText"))
                        .backgroundColor(.blue)
                        .primaryFontColor(.white)
                        .secondaryFontColor(.white.opacity(0.6))
                        .titleLineLimit(3)
                        .frame(width: size, alignment: .center)
                    
                    LinkPreview(url: URL(string: "https://github.com/NuPlay/ExpandableText"))
                        .titleLineLimit(20)
                        .frame(width: size, alignment: .center)
                        .type(.small)
                    
                    LinkPreview(url: URL(string: "https://github.com/NuPlay/SwiftUI-SlideText"))
                }
                .padding(.horizontal, 24)
            }
            
            Slider(value: $size , in: 100...400, step: 1)
                .padding(.horizontal, 24)
        }
    }
}

Modifier(optional)

Modifier Default
.backgroundColor(_ backgroundColor: Color) Color(.systemGray5)
.primaryFontColor(_ primaryFontColor: Color) .primary
.secondaryFontColor(_ secondaryFontColor: Color) .gray
.titleLineLimit(_ titleLineLimit: Int) 3
.type(_ type: LinkPreviewType(customType[.large, .small, .auto])) .auto
You might also like...
A open source Swift app for iOS 13 that allows you to check your NFC transit card information. Written with SwiftUI.
A open source Swift app for iOS 13 that allows you to check your NFC transit card information. Written with SwiftUI.

ABANDONED Metrodroid, which TransitPal was heavily inspired by, now has its own fully functional iOS app! It should be in the App Store "soon". I stro

Visualize your dividend growth. DivRise tracks dividend prices of your stocks, gives you in-depth information about dividend paying stocks like the next dividend date and allows you to log your monthly dividend income.
Visualize your dividend growth. DivRise tracks dividend prices of your stocks, gives you in-depth information about dividend paying stocks like the next dividend date and allows you to log your monthly dividend income.

DivRise DivRise is an iOS app written in Pure SwiftUI that tracks dividend prices of your stocks, gives you in-depth information about dividend paying

Provenance is a native macOS application that interacts with the Up Banking Developer API to display information about your bank accounts, transactions, categories, tags and more.

Provenance Provenance is a native macOS application that interacts with the Up Banking Developer API to display information about your bank accounts,

‪‪An app that stores and displays the information entered by the user‬‬

To do list :‬‬ ‪‪An app that stores and displays the information entered by the user‬‬ ‪‪The user can : Add, delete one or clear all , Edit, Show the

iOS app that shows real-time information about subway train arrivals in Seoul, South Korea.
iOS app that shows real-time information about subway train arrivals in Seoul, South Korea.

NextTrain iOS app that shows real-time information about subway train arrivals in Seoul, South Korea. The app was implemented using clean code and TDD

Client that retrieves specific information about stocks.
Client that retrieves specific information about stocks.

Client that retrieves specific information about stocks. This app is used as training to develop design pattern skills, in this case: the Coordinator Pattern

A Weather information can be searched by a city name and added into a favorite list

A Weather information can be searched by a city name and added into a favorite list. The list can be refreshed with pull to refresh. Move func exists.

Sol° beautifully displays weather information so you can plan your day accordingly
Sol° beautifully displays weather information so you can plan your day accordingly

Sol° for iOS Sol° beautifully displays weather information so you can plan your day accordingly. Check the weather in your current location or any cit

Releases(1.1.0)
Owner
null
A Figma component preview for your SwiftUI views

FigmaPreviewSwiftUI A Figma component preview for your SwiftUI views. You can use Figma components instead of real views within your app until you imp

Danis Tazetdinov 50 Dec 23, 2022
PreviewDevice - library with elegant syntax for Preview Device in SwiftUI

PreviewDevice Requirements Xcode 13.x iOS 13.0+, macOS 10.15+, Mac Catalyst 13.0+, tvOS 13.0+, watchOS 6.0+ Usage Example: import PreviewDevice struc

Anton Paliakov 32 Nov 22, 2022
QuickLook Preview for SwiftUI on Mac Catalyst

QuickLook Preview for SwiftUI on Mac Catalyst According to the documentation for

Tom Dai 9 Dec 31, 2022
Bookmark important links with categories to read them later on the go!

Kicking Off Hacktoberfest with ACM-VIT! Sticky Links Save link of your favourite websites, articles, videos and pretty much anything! Overview This is

ACM VIT 6 Oct 3, 2022
macOS app to save links for later

Later Later is a SwiftUI, macOS app to store and save links for later use! Why? I was tired of Reddit's terrible post saving, and wanted an easy, conv

null 6 Oct 4, 2022
How to handle HelaPay links inside UIWebView and WKWebView

Handling හෙළPay Links Setup Clone this repo. git clone https://github.com/PayHereDevs/helapay-link-handler.git To properly handle හෙළPay Links in you

PayHereDevs 0 Feb 9, 2022
WeHobby is an IOS application which aims to facilitate the discovery of new hobbies while creating links between users.

???? WeHobby (EN) WeHobby is an IOS application which aims to facilitate the discovery of new hobbies while creating links between users. The issues t

Thomas 2 Dec 8, 2022
Window preview app for MacOS (on the dock) using AltTab.

DockAltTab The #1 Window manager/Task switcher & Companion for AltTab v1.1 download link https://github.com/steventheworker/DockAltTab/releases/downlo

Steven G. 40 Jan 2, 2023
A SwiftUI app that reads iOS/watchOS/tvOS device model information from Xcode you select.

iVariant A SwiftUI app that reads iOS/watchOS/tvOS device model information from Xcode you select. Preview License iVariant is licensed under MIT. Cop

Lakr Aream 20 Aug 4, 2022
A SwiftUI App that displays information about the planets in our solar system.

MySpaceApp Created by Noman Ahmad Current Version : 1.0 Description: MySpaceApp is a simple ios app designed for space enthusiasts. With this app, you

Noman Ahmad 1 Nov 2, 2021