Rounded async imageview downloader lightly cached and written in Swift

Related tags

Image PASImageView
Overview

PASImageView

============

**Rounded async imageview downloader lightly cached and written in Swift 3 **

Objective-C version here

Snapshot

Snapshop PASImageView

Usage

//XIB or directly by code

var imageView = PASImageView(frame: aFrame)
imageView.backgroundProgressColor = UIColor.whiteColor()
imageView.progressColor = UIColor.redColor()
self.view.addSubview(imageView)
// Later
 imageView.imageURL(anURL)

That's all

Contact

Pierre Abi-aad @abiaad

License

PASImageView is available under the MIT license.

Comments
  • Image URL Invalid

    Image URL Invalid

    Hi, its great plugin. I am loading image url. The image url is valid but image not exists. So in this case the placeholder image is displayed but the progresslayer not updating. Progresslayer remains in redcolor. So what additional action need to perform?

    Thanks.

    opened by pinkal 4
  • Reset loaded image to placeholder one

    Reset loaded image to placeholder one

    I'm using PASImageView as ImageView for avatar in my App. I display a placeholder image when the user didn't login and load the image when user login ... Thats all work fine.

    But is there is a way to reset the image to the placeholder one when the user logout ?

    opened by engmsaleh 2
  • Issue with UITableViewCell

    Issue with UITableViewCell

    Hi, I have a custom cell with PASImageView, the issue is when i scrolls the table view the previous cell's image is displayed and then the correct image is displayed. Eg. There is 8 rows visible in the tableview, now when i scroll the 9th row will display image of the 1st row and after 1-2 second the correct image is displayed. Means progress for the 9th row is not visible. Can you help me for this?

    Thanks.

    opened by pinkal 2
  • Fix crash when dispatching to handleSingleTap:

    Fix crash when dispatching to handleSingleTap:

    Hi Pierre,

    I've had an "unknown selector" crash when tapping on PASImageView. The reason seems to be the private modifier on handleSingleTap function – everything works once I remove it.

    Thanks, Ilya.

    opened by ilyannn 1
  • can not trigger collectionView() as a collectionViewCell

    can not trigger collectionView() as a collectionViewCell

    Hi, I used PASImageView to load image for the collectionViewCell as below:

    override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath:      NSIndexPath) -> UICollectionViewCell{
    .......
    
    var imageView = PASImageView(frame: CGRectMake(0, 0, 100, 136))
        //imageView.center = CGPointMake(cell.bounds.width / 2, cell.bounds.height / 2)
    
        imageView.backgroundProgressColor(UIColor.whiteColor())
        imageView.progressColor(UIColor.redColor())
        cell.addSubview(imageView)
    
        if let anURL = NSURL(string: EPGServices.PicServer + item.Icon1) {
            imageView.imageURL(anURL)
        }
        return cell
    }
    

    the imageView work well. but when I click the image on the collectionViewCell, it can not trigger the function

    override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath).
    

    it come the result that I can't switch to another viewController when I click the collectionViewCell.

    Can you help me to look at this?

    Thanks a lot.

    ADD: I changed these functions in PASImageView.swift(change all radius to 0):

    override func layoutSubviews() {
        self.layer.cornerRadius = 0.0//self.bounds.width/2.0
        progressContainer.layer.cornerRadius = 0.0//self.bounds.width/2.0
        containerImageView.layer.cornerRadius = 0.0//self.bounds.width/2.0
    
        updatePaths()
    }
    
    func updatePaths() {
        let arcCenter   = CGPoint(x: CGRectGetMidX(self.bounds), y: CGRectGetMidY(self.bounds))
        let radius      =  0.0//Float(min(CGRectGetMidX(self.bounds) - 1, CGRectGetMidY(self.bounds)-1))
        let circlePath = UIBezierPath(arcCenter: arcCenter,
            radius: CGFloat(radius),
            startAngle: CGFloat(-rad(Float(90))),
            endAngle: CGFloat(rad(360-90)),
            clockwise: true)
    
        backgroundLayer.path           = circlePath.CGPath
        progressLayer.path             = backgroundLayer.path
    
    }
    
    opened by TangSirOnGit 1
Releases(2.0.0)
Owner
Pierre Abi-aad
iOS lead developer
Pierre Abi-aad
iOS Swift class to create circular or rounded avatar images

SwiftyAvatar iOS Swift 3.0 UIimage class Create awesome circular avatar images! IBInspectable attributes accessible from the identity inspector. Round

Dimitrios Kalaitzidis 183 Dec 17, 2022
How to create a circular and rectangular ImageView with similar image?

chapter11CircularAndRectangularImage How to create a circular and rectangular ImageView with similar image? I add two imageView in Main.storyboard I a

ahmetbostanciklioglu 0 Jan 8, 2022
ImageView - Component for loading and displaying different images aka SVG/PNG/JPG/JPEG

ImageView Component that loads and displays images(.svg/.png/.jpg/.jpeg) form as

Sergei 1 Mar 23, 2022
add text(multiple line support) to imageView, edit, rotate or resize them as you want, then render the text on image

StickerTextView is an subclass of UIImageView. You can add multiple text to it, edit, rotate, resize the text as you want with one finger, then render the text on Image.

Textcat 478 Dec 17, 2022
A custom ImageView that is used to cover the surface of other view like a scratch card, user can swipe the mulch to see the view below.

MCScratchImageView GIF Showcase Requirments iOS 8.0+ Xcode 7.2+ Swift 4.0 Installation CocoaPods pod "MCScratchImageView" Manually Just drag MCScratch

Jaylen Bian 359 Dec 17, 2022
DG Zoomable ImageView

DGZoomableImageView A zoomable, pan-able image view Requirements iOS 12.0+ Swift

donggyu 7 Aug 17, 2022
Create ImageView for User or Group like Messenger app

MessengerBubbles Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements Installation C

Laurent Grondin 29 Mar 8, 2022
Multi image downloader with priority in Swift

Vulcan Multi image downloader with priority in Swift Features Very light Multi image download with priority Caching images Pure Swift Composable image

Jin Sasaki 294 Aug 29, 2022
🚀SwiftUI Image downloader with performant LRU mem/disk cache.

Progressive concurrent image downloader for SwiftUI, with neat API and performant LRU mem/disk cache.

Cheng Zhang 42 Sep 24, 2022
Asynchronous image downloader with cache support as a UIImageView category

This library provides an async image downloader with cache support. For convenience, we added categories for UI elements like UIImageView, UIButton, M

null 24.4k Jan 5, 2023
DGImageView - Asynchronous image downloader with cache. Supports gif too

DGImageView Installation Usage DGImageView Asynchronous image downloader with cache. Supports gif, memory cache, disk cache features. Installation Xco

donggyu 1 Jan 1, 2022
SocialDownloaderApp - An exact copy of Social Downloader App by Sulton Handaya For Pelorous

SocialDownloaderApp It is a copy of Social Downloader App by Sulton Handaya For

prashant-humney 0 Jan 12, 2022
An extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memory and disk caching for iOS and  Watch.

KFSwiftImageLoader KFSwiftImageLoader is an extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memor

Kiavash Faisali 343 Oct 29, 2022
Lightweight and customisable async image loading in SwiftUI. Supports on-disk storage, placeholders and more!

Asyncrounously download and display images in Swift UI. Supports progress indicators, placeholders and image transitions. RemoteImageView Asyncrounous

Callum Trounce 192 Dec 7, 2022
AYImageKit is a Swift Library for Async Image Downloading, Show Name's Initials and Can View image in Separate Screen.

AYImageKit AYImageKit is a Swift Library for Async Image Downloading. Features Async Image Downloading. Can Show Text Initials. Can have Custom Styles

Adnan Yousaf 11 Jan 10, 2022
🖼 Gallery App for Actomaton (async/await + Elm Architecture) + SwiftUI.

?? Actomaton-Gallery Gallery App for Actomaton (async/await + Elm Architecture) + SwiftUI. NOTE: Most of the code are reused from Harvest-SwiftUI-Gall

Yasuhiro Inami 44 Dec 20, 2022
A lightweight and fast image loader for iOS written in Swift.

ImageLoader ImageLoader is an instrument for asynchronous image loading written in Swift. It is a lightweight and fast image loader for iOS. Features

Hirohisa Kawasaki 293 Nov 24, 2022
An image download extension of the image view written in Swift for iOS, tvOS and macOS.

Moa, an image downloader written in Swift for iOS, tvOS and macOS Moa is an image download library written in Swift. It allows to download and show an

Evgenii Neumerzhitckii 330 Sep 9, 2022
Fast and simple OCR library written in Swift

⛔️ This Project is deprecated and no longer gets maintained! Please use Apple's Vision framework instead of SwiftOCR. It is very fast, accurate and mu

Nicolas Camenisch 4.5k Dec 29, 2022