I have UIImageView like simple Gallery which get data from JSON. 

```
-(void)connectionDidFinishLoading:(NSURLConnection *)connection
{
    NSDictionary *allDataDictionary = [NSJSONSerialization JSONObjectWithData:webdata options:0 error:nil];
    NSArray *tmp =[allDataDictionary objectForKey:@"gallery"];
    if (tmp.count>0){

        for (NSDictionary *diction in tmp) {
            [self.patternImagesArray addObject:diction];
        }

        NSLog(@"%@", self.patternImagesArray);
      //  [loading stopAnimating];

    }

    [self.collectionView reloadData];
}

-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{

    PatternView *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"PatternCell" forIndexPath:indexPath];

    NSString *myPatternString = [[self.patternImagesArray objectAtIndex:indexPath.row] valueForKey:@"thumb"];

    NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:myPatternString]];
    cell.patternImageView.image = [UIImage imageWithData:data];

    return cell;

}

```

For give full image i use this:

```
-(void)viewDidLoad{

    NSString *path=[_newsData valueForKey:@"bigimg"];

    NSData* imageData = [NSData dataWithContentsOfURL: [NSURL URLWithString: path]];

    UIImage* image = [UIImage imageWithData: imageData];

        NSLog(@"%@", image);

    _imageParse.image = image;

    [_PanelTools setHidden:YES];

}

```

When i push on any image in my CollectionViewCell i can see full image, but how to create swipe left/right for next image or back. I know how to make swipe into the any side but how to create swipe with image next/back. 

![enter image description here](https://i.stack.imgur.com/qKrxD.png)