Popularity
3.6
Stable
Activity
0.0
Declining
197
6
22

Code Quality Rank: L3
Programming language: Swift
License: MIT License
Tags: XML / HTML / CSV    
Latest version: v2.1.0

URLPreview alternatives and similar libraries

Based on the "XML / HTML / CSV" category.
Alternatively, view URLPreview alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of URLPreview or a related project?

Add another 'XML / HTML / CSV' Library

README

URLPreview

An NSURL extension for showing preview info of webpages.

You may want to use it if you want to mimick Facebook app's behavior when you post a link on your status.

Screenshot

Requirements

  • Swift 5 & Xcode 10.2
  • This library depends on Kanna

Usage

Pretty simple, all you need is a block:

if let url = NSURL(string: urlTextField.text!) {
    url.fetchPageInfo({ (title, description, previewImage) -> Void in
      // do whatever you want here
    }, failure: { (errorMessage) -> Void in
      print(errorMessage)
    })
} else {
  print("Invalid URL!")
}

Contributing

Contributions for bug fixing or improvements are welcome. Feel free to submit a pull request.

Licence

URLPreview is available under the MIT license. See the LICENSE file for more info.


*Note that all licence references and agreements mentioned in the URLPreview README section above are relevant to that project's source code only.