Swiftpack.co - Package - jiachenyee/URL-Previews-Package

URL Previews

Usage

import URL_Previews

// Replace this with any URL you want
let url = URL(string: "https://github.com/sst-inc/")!

// Fetching the page information
url.fetchPageInfo { (title, description, previewImage) -> Void in

    // 🥳 Things are going great
    print("Title : \(title)")
    print("Description : \(description)")
    print("Image URL : \(previewImage)")
    
} failure: { (message) in
    // 😭 An error occurred
    print(message)
}

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

1.0 - 2020-08-27 08:36:51

Released it