All Projects → V8tr → Asyncimage

V8tr / Asyncimage

Licence: unlicense
Asynchronous Image Loading from URL in SwiftUI

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Asyncimage

Maplebacon
🍁🥓 Lightweight and fast Swift library for image downloading, caching and transformations
Stars: ✭ 322 (+131.65%)
Mutual labels:  image, uiimageview
ChopChop
Chop an image to as many quadrants as you like at compile time. Great for dynamic content, suitable for games and image processing. Image matrix
Stars: ✭ 14 (-89.93%)
Mutual labels:  uiimage, uiimageview
Zoomy
Adds seamless scrollView and instagram like zooming to UIImageViews in any view hierarchy.
Stars: ✭ 130 (-6.47%)
Mutual labels:  image, uiimageview
Moa
An image download extension of the image view written in Swift for iOS, tvOS and macOS.
Stars: ✭ 314 (+125.9%)
Mutual labels:  image, uiimageview
Tocropviewcontroller
A view controller for iOS that allows users to crop portions of UIImage objects
Stars: ✭ 4,210 (+2928.78%)
Mutual labels:  image, uiimage
Ios Imagezoomviewer
ImageZoomViewer is a simple to use Objective C framework that allows the capability of viewing images with zoom-in zoom-out functionality.
Stars: ✭ 14 (-89.93%)
Mutual labels:  uiimageview, uiimage
Abmediaview
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.
Stars: ✭ 79 (-43.17%)
Mutual labels:  image, uiimageview
Imagehash
🌄 Perceptual image hashing for PHP
Stars: ✭ 1,744 (+1154.68%)
Mutual labels:  image
Image Focus
A dependency free utility for cropping images based on a focus point ~2.13kB gzipped
Stars: ✭ 134 (-3.6%)
Mutual labels:  image
Weibo image uploader
PHP 实现的微博图床上传轮子
Stars: ✭ 129 (-7.19%)
Mutual labels:  image
Mergi
go library for image programming (merge, crop, resize, watermark, animate, ease, transit)
Stars: ✭ 127 (-8.63%)
Mutual labels:  image
Collage maker
Picture collage maker in Python
Stars: ✭ 131 (-5.76%)
Mutual labels:  image
Vifmimg
Image previews using Überzug for Vifm (vi file manager)
Stars: ✭ 135 (-2.88%)
Mutual labels:  image
Image Promise
🎑🤞 Load one or more images, return a promise. Tiny, browser-only, no dependencies.
Stars: ✭ 129 (-7.19%)
Mutual labels:  image
Flex Block
一个基于Hexo的主题
Stars: ✭ 133 (-4.32%)
Mutual labels:  image
Bbwebimage
A high performance Swift library for downloading, caching and editing web images asynchronously.
Stars: ✭ 128 (-7.91%)
Mutual labels:  image
Pdfinverter
darken (or lighten) a PDF
Stars: ✭ 139 (+0%)
Mutual labels:  image
Flutter cached network image
Download, cache and show images in a flutter app
Stars: ✭ 1,923 (+1283.45%)
Mutual labels:  image
Image Resizer
Resize/Crop/Rotate/Pad images in Clojure without any native install. Oh and do it Fast.
Stars: ✭ 133 (-4.32%)
Mutual labels:  image
Romwbw
System Software for Z80/Z180 Computers
Stars: ✭ 133 (-4.32%)
Mutual labels:  image

Article related to this project


AsyncImage

The project demonstrates how to load images asynchronously in SwiftUI.

Usage:

// Image URLs to load
let posters = [
    "https://image.tmdb.org/t/p/original/pThyQovXQrw2m0s9x82twj48Jq4.jpg",
    "https://image.tmdb.org/t/p/original/vqzNJRH4YyquRiWxCCOH0aXggHI.jpg",
    "https://image.tmdb.org/t/p/original/6ApDtO7xaWAfPqfi2IARXIzj8QS.jpg",
    "https://image.tmdb.org/t/p/original/7GsM4mtM0worCtIVeiQt28HieeN.jpg"
].map { URL(string: $0)! }

struct ContentView: View {
    var body: some View {
         List(posters, id: \.self) { url in
             AsyncImage(
                url: url,
                placeholder: { Text("Loading ...") },
                image: { Image(uiImage: $0).resizable() }
             )
            .frame(idealHeight: UIScreen.main.bounds.width / 2 * 3) // 2:3 aspect ratio
         }
    }
}

Result:

How to load image from URL asynchronously in SwiftUI

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].