Swiftpack.co - ViniciusDeep/WPImage as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ViniciusDeep.
ViniciusDeep/WPImage 1.0.1
🗾Reactive image downloader with cache support as a Image using Combine
⭐️ 0
🕓 5 days ago
iOS
.package(url: "https://github.com/ViniciusDeep/WPImage.git", from: "1.0.1")

WPImage 🗾

⚠️ Warning

This lib was deprecated, because in iOS 15 Apple have been launched the AsyncImage with the same objetive to use AsyncImage it's look like:

import SwiftUI

struct ContentView: View {
    var body: some View {
        VStack {
            AsyncImage(url: URL(string: "https://rickandmortyapi.com/api/character/avatar/1.jpeg"!)) { image in 
                image.resizable()
            }
        }
    }
}

Screen Shot 2019-08-28 at 22 25 25

Swift Build Status

✨Reactive image downloader with cache support as a Image using Combine

At a Glance

import WPImageKit

struct ContentView: View {
    var body: some View {
        VStack {
            WPImage(imageUrl: "https://rickandmortyapi.com/api/character/avatar/1.jpeg", placeholder: "placeholder")
        }
    }
}

Small Advantages

  • You can abstract the all task to download image to put in your View.

  • Automatic Cache, don't worry in make a cache.

  • Sugar syntatic, just pass to init of WPImage, and customize your Image

Installation

  1. This library is avaiable in Swift Package Manager, so just install...

License

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

GitHub

link
Stars: 0
Last commit: 5 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics