Skip to content

Commit 41ce134

Browse files
committed
rename MHFacebookImageViewer to ImageViewer.swift
1 parent 46b94c5 commit 41ce134

File tree

8 files changed

+58
-34
lines changed

8 files changed

+58
-34
lines changed

Example/Demo/BasicViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import UIKit
2-
import MHFacebookImageViewer
2+
import ImageViewer_swift
33

44
class BasicViewController:UIViewController {
55

Example/Demo/GalleryViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import UIKit
2-
import MHFacebookImageViewer
2+
import ImageViewer_swift
33

44
class WithImagesViewController:UIViewController {
55

Example/Demo/WithURLViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import UIKit
2-
import MHFacebookImageViewer
2+
import ImageViewer_swift
33
import SDWebImage
44

55
class WithURLViewController:UIViewController {

Example/Demo/WithURLsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import UIKit
2-
import MHFacebookImageViewer
2+
import ImageViewer_swift
33
import SDWebImage
44

55
class WithURLsViewController:UIViewController {

Example/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ platform :ios, '10.0'
22
use_frameworks!
33

44
target 'Demo' do
5-
pod 'MHFacebookImageViewer', :path => './../'
5+
pod 'ImageViewer.swift', :path => './../'
66
end

Example/Podfile.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
PODS:
2-
- MHFacebookImageViewer (3.0):
2+
- ImageViewer.swift (3.0):
33
- SDWebImage
4-
- SDWebImage (5.3.1):
5-
- SDWebImage/Core (= 5.3.1)
6-
- SDWebImage/Core (5.3.1)
4+
- SDWebImage (5.3.3):
5+
- SDWebImage/Core (= 5.3.3)
6+
- SDWebImage/Core (5.3.3)
77

88
DEPENDENCIES:
9-
- MHFacebookImageViewer (from `./../`)
9+
- ImageViewer.swift (from `./../`)
1010

1111
SPEC REPOS:
1212
trunk:
1313
- SDWebImage
1414

1515
EXTERNAL SOURCES:
16-
MHFacebookImageViewer:
16+
ImageViewer.swift:
1717
:path: "./../"
1818

1919
SPEC CHECKSUMS:
20-
MHFacebookImageViewer: 33dbbc081e9bbb63fc2b6064e6bcbe781e181305
21-
SDWebImage: 7137d57385fb632129838c1e6ab9528a22c666cc
20+
ImageViewer.swift: a8ddca1afeea736c557ba44ce5c220d829922c8a
21+
SDWebImage: 51ab1ce3ebd20dec6665ae8ba25c928da323db41
2222

23-
PODFILE CHECKSUM: a76bc2556a55186d19824e4dda95c79979321b67
23+
PODFILE CHECKSUM: 3cb622a244c4948f6d66f0aaa9d36294c3ab7fe1
2424

2525
COCOAPODS: 1.8.4

MHFacebookImageViewer.podspec renamed to ImageViewer.swift.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |s|
2-
s.name = 'MHFacebookImageViewer'
2+
s.name = 'ImageViewer.swift'
33
s.version = ENV['LIB_VERSION'] || '3.0'
4-
s.summary = 'A new Image Viewer inspired by Facebook.'
5-
s.homepage = 'https://github.com/michaelhenry/MHFacebookImageViewer'
4+
s.summary = 'An easy to use Image Viewer that is inspired by Facebook'
5+
s.homepage = 'https://github.com/michaelhenry/ImageViewer.swift'
66
s.author = 'Michael Henry Pantaleon', 'me@iamkel.net'
77
s.source = {
8-
:git => 'https://github.com/michaelhenry/MHFacebookImageViewer.git',
8+
:git => 'https://github.com/michaelhenry/ImageViewer.swift.git',
99
:tag => s.version.to_s
1010
}
1111
s.source_files = 'Sources/*'

README.md

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
1-
MHFacebookImageViewer
1+
ImageViewer.swift
22
=======================
33

4-
An Image Viewer inspired by Facebook
4+
An easy to use Image Viewer that is inspired by Facebook
55

6-
[![Version](https://img.shields.io/cocoapods/v/MHFacebookImageViewer.svg?style=flat)](https://cocoapods.org/pods/MHFacebookImageViewer)
7-
[![Deployment status](https://github.com/michaelhenry/MHFacebookImageViewer/workflows/deploy_to_cocoapods/badge.svg)](https://github.com/michaelhenry/MHFacebookImageViewer/actions)
8-
[![License](https://img.shields.io/cocoapods/l/MHFacebookImageViewer.svg?style=flat)](https://cocoapods.org/pods/MHFacebookImageViewer)
9-
[![Platform](https://img.shields.io/cocoapods/p/MHFacebookImageViewer.svg?style=flat)](https://cocoapods.org/pods/MHFacebookImageViewer)
6+
[![Version](https://img.shields.io/cocoapods/v/ImageViewer.swift.svg?style=flat)](https://cocoapods.org/pods/ImageViewer.swift)
7+
[![Deployment status](https://github.com/michaelhenry/ImageViewer.swift/workflows/deploy_to_cocoapods/badge.svg)](https://github.com/michaelhenry/ImageViewer.swift/actions)
8+
[![License](https://img.shields.io/cocoapods/l/ImageViewer.swift.svg?style=flat)](https://cocoapods.org/pods/ImageViewer.swift)
9+
[![Platform](https://img.shields.io/cocoapods/p/ImageViewer.swift.svg?style=flat)](https://cocoapods.org/pods/ImageViewer.swift)
1010

1111
![Screenshot-dark-mode](images/dark-mode.gif)![Screenshot-light-mode](images/light-mode.gif)
1212
![Screenshot-auto-rotate](images/auto-rotate.gif)
1313

14-
# Demo Video
15-
16-
http://youtu.be/NTs2COXxrrA
17-
18-
1914
# Supports
2015

2116
- From iOS 10
@@ -29,12 +24,13 @@ http://youtu.be/NTs2COXxrrA
2924
Using [cocoapods](https://cocoapods.org)
3025

3126
```ruby
32-
pod 'MHFacebookImageViewer', '~> 3.0'
27+
pod 'ImageViewer.swift', '~> 3.0'
3328
```
3429

3530
## How to use it
3631

37-
The simplest way to implement is by using the [UIImageView.setupImageViewer()](https://github.com/michaelhenry/MHFacebookImageViewer/blob/a17f8c47e6ad1fcc3c47a0a3b03ab0bfbdc9fc2d/Example/Demo/BasicViewController.swift#L11)
32+
The simplest way to to use this is by using the [UIImageView.setupImageViewer()](https://github.com/michaelhenry/MHFacebookImageViewer/blob/master/Example/Demo/BasicViewController.swift#L11)
33+
3834

3935
```swift
4036
imageView.setupImageViewer()
@@ -43,18 +39,46 @@ imageView.setupImageViewer()
4339
Example:
4440

4541
```swift
46-
import MHFacebookImageViewer
42+
import ImageViewer_swift
4743

4844
let imageView = UIImageView()
4945
imageView.image = UIImage(named: 'cat1')
5046
...
5147
imageView.setupImageViewer()
5248
```
5349

54-
or you could also check the [Demo](Example) Project.
50+
Or you might load it from a URL
51+
52+
```swift
53+
imageView.setupImageViewer(url: URL(string: "https://example.com/image.jpg")!)
54+
```
55+
56+
Or you might load it with an array of images `[UIImage]`
57+
58+
```swift
59+
let images = [
60+
UIImage(named: "cat1"),
61+
UIImage(named: "cat1"),
62+
UIImage(named: "cat1")
63+
]
64+
imageView.setupImageViewer(images: images)
65+
```
66+
67+
Or you might load it with an array of URL `[URL]`
68+
69+
```swift
70+
let urls = [
71+
URL(string: "https://example.com/your-image-1.jpg")!,
72+
URL(string: "https://example.com/your-image-2.jpg")!,
73+
URL(string: "https://example.com/your-image-3.jpg")!
74+
]
75+
imageView.setupImageViewer(urls: urls)
76+
```
77+
78+
You could also check the [Demo](Example) Project for more information.
5579

5680

57-
### And That's it. :)
81+
### Easy peasy :)
5882

5983
Please let me know if you have any questions.
6084

0 commit comments

Comments
 (0)