SDWebImage / SDWebImageLinkPlugin

A SDWebImage loader plugin, to support load rich link image with LinkPresentation framework
MIT License
17 stars 2 forks source link

Supports to use this framework backward deployable on iOS 12/macOS 10.14- #15

Closed dreampiggy closed 4 years ago

dreampiggy commented 4 years ago

This close #14

Sample code:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    // Override point for customization after application launch.
    if #available(iOS 13, *) {
        // iOS 13 use UIWindowScene
        SDImageLoadersManager.shared.addLoader(SDImageLinkLoader.shared)
    } else {
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.rootViewController = ViewController()
        window?.makeKeyAndVisible()
    }
    return true
}

Before :

image

After:

image

codecov[bot] commented 4 years ago

Codecov Report

Merging #15 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #15   +/-   ##
=======================================
  Coverage   60.08%   60.08%           
=======================================
  Files           2        2           
  Lines         223      223           
=======================================
  Hits          134      134           
  Misses         89       89
Flag Coverage Δ
#iOS 60.08% <ø> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6a97d3e...dde632c. Read the comment docs.