Latest 0.1.0
Homepage https://github.com/VimalDas/VDSImageViewer
License Apache 2
Platforms ios 10.0
Authors

Image Viewer

To use the animation, first create an object for VDSImageViewer.
eg: VDSImageViewerAnimations *obj;

then initialize the object:
eg: obj = [[VDSImageViewerAnimations alloc]init];

to setup animation for a single imageview :
eg:  [obj setupViews: singleImageView view:self];

then give the image as an array to VDSImageViewer
eg: obj.imageArray = [NSArray arrayWithObject:UIImageJPEGRepresentation([UIImage imageNamed:@" your_image_name"], 1.0)];

currently the imageViewer only accepts NSData objects.

if you want to setup animation on a single imageview and then scroll through your images then pass all your images as array.
important: images are accepted only as Array of NSData objects.

if you are using a tableview or collectionview and want to add animation to each and every cell, call the animation function in cellForRow.
 eg:  [obj setupViews: singleImageView view:self];

 this will add the animation to all the cells imageviews.

 important: add privacy to access contacts in info.plist as the pod also contains the contacts sync class.

 to use the contacts sync , create an obj for the class.
  eg: VDSContactSync *contactsObj;

  initialize it.
  eg: contactsObj = [[VDSContactSync alloc]init];

  if contacts dont have images a placeholder image can be given to the contact.
  to set up contacts syncronisation, call this method in  viewDidLoad.

  [contacts setupContactsSyncWithPlaceholderImage:[UIImage imageNamed:@"placeholder_image"] withCompletion:^(Boolean status) {
    if (status) {
          // when the syncing is completed, call reloadData incase if you are showing the contacts in tableview or collectionview.
        dispatch_async(dispatch_get_main_queue(), ^{
            [self.table reloadData];
        });

    }
}];

the fetched contacts array is already filtered for you.
for contact names : contactsObj.contactsNameArray

for contact original images array : contactsObj.contactsImageArray

for contact thumbnail image array : contactsObj.contactsThumbnailImageArray

for the full details of contacts, it is available as array of dictionaries. : contactsObj.contactsArray

Latest podspec

{
    "name": "VDSImageViewer",
    "version": "0.1.0",
    "summary": "By far the most fantastic imageViewer I have seen in my entire life. No joke.",
    "description": "imageViewer for tableview and collection-view with lots of cool animations. contact sync is also added.",
    "homepage": "https://github.com/VimalDas/VDSImageViewer",
    "license": {
        "type": "Apache 2",
        "file": "LICENSE"
    },
    "authors": {
        "Vimal Das": "[email protected]"
    },
    "source": {
        "git": "https://github.com/VimalDas/VDSImageViewer.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "VDSImageViewer/VDSImageViewer/VDSImageViewer/VDSImageViewer/*"
}

Pin It on Pinterest

Share This