All Projects → michaelhenry → Imageviewer.swift

michaelhenry / Imageviewer.swift

An easy to use Image Viewer that is inspired by Facebook

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Imageviewer.swift

Ptshowcaseviewcontroller
An initial implementation of a "showcase" view( controller) for iOS apps... Visualizes images, videos and PDF files beautifully! (by @pittleorg) [meta: image, photo, video, document, pdf, album, gallery, showcase, gallery, iOS, iPhone, iPad, component, library, viewer]
Stars: ✭ 395 (-63.12%)
Mutual labels:  library, image, photo, gallery
Ptimagealbumviewcontroller
"Image Album" — or "Photo Album" if you like that better — View( Controller) for all crazy iOS developers out there...
Stars: ✭ 199 (-81.42%)
Mutual labels:  library, image, photo, gallery
Stfalconimageviewer
A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures
Stars: ✭ 1,734 (+61.9%)
Mutual labels:  image, photo, gallery
Network Avatar Picker
A npm module that returns user's social network avatar. Supported providers: facebook, instagram, twitter, tumblr, vimeo, github, youtube and gmail
Stars: ✭ 74 (-93.09%)
Mutual labels:  image, twitter, facebook
React Messenger
Chat UX components built with React, inspired by Facebook Messenger
Stars: ✭ 167 (-84.41%)
Mutual labels:  library, facebook, ux
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+241.83%)
Mutual labels:  library, photo, gallery
Hxphotopicker
图片/视频选择器 - 支持LivePhoto、GIF图片选择、3DTouch预览、在线下载iCloud上的资源、编辑图片/视频、浏览网络图片 功能 Imitation wx photo/image picker - support for LivePhoto, GIF image selection, 3DTouch preview, Download the resources on iCloud online, browse the web image function
Stars: ✭ 2,363 (+120.63%)
Mutual labels:  image, photo, cocoapods
Rxgalleryfinal
图片选择库,单选/多选、拍照、裁剪、压缩,自定义。包括视频选择和录制。
Stars: ✭ 2,798 (+161.25%)
Mutual labels:  image, photo, gallery
Kiimagepager
The KIImagePager is inspired by foursquare's ImageSlideshow, the user may scroll through images loaded from the Web
Stars: ✭ 324 (-69.75%)
Mutual labels:  library, image, gallery
React Native Blurhash
🖼️ A library to show colorful blurry placeholders while your content loads.
Stars: ✭ 430 (-59.85%)
Mutual labels:  library, image, ux
Louvre
A small customizable library useful to handle an gallery image pick action built-in your app. 🌄🌠
Stars: ✭ 629 (-41.27%)
Mutual labels:  library, image, gallery
Greedo Layout For Ios
Full aspect ratio grid layout for iOS
Stars: ✭ 837 (-21.85%)
Mutual labels:  library, cocoapods
Sdwebimageflplugin
A SDWebImage plugin to support GIF using FLAnimatedImage and category
Stars: ✭ 16 (-98.51%)
Mutual labels:  image, cocoapods
Styledecorator
Easy string decoration with styles
Stars: ✭ 17 (-98.41%)
Mutual labels:  library, cocoapods
Vuepress Plugin Social Share
📣 Social sharing plugin for VuePress
Stars: ✭ 27 (-97.48%)
Mutual labels:  twitter, facebook
Social Network Harvester V1.0
Stars: ✭ 5 (-99.53%)
Mutual labels:  twitter, facebook
Ultimate Metatags
A large snippet for your page's <head> that includes all the meta tags you'll need for OPTIMAL sharing and SEO. Extensive work has been put into ensuring you have the optimal images for the most important social media platforms.
Stars: ✭ 24 (-97.76%)
Mutual labels:  twitter, facebook
Keyring
Keyring is an authentication framework for WordPress. It comes with definitions for a variety of HTTP Basic, OAuth1 and OAuth2 web services. Use it as a common foundation for working with other web services from within WordPress code.
Stars: ✭ 52 (-95.14%)
Mutual labels:  twitter, facebook
Ambient
Lightweight ambient light javascript library for HTML image and video elements
Stars: ✭ 20 (-98.13%)
Mutual labels:  library, image
Vue Twitter Counter
Counter component inspired in Twitter with Vue
Stars: ✭ 29 (-97.29%)
Mutual labels:  twitter, ux

ImageViewer.swift

An easy to use Image Viewer that is inspired by Facebook

Version Deployment status License Platform

Screenshot-dark-modeScreenshot-light-mode Screenshot-auto-rotate

Supports

  • From iOS 10
  • Swift versions
    • Swift 4.0
    • Swift 4.2
    • Swift 5.0

Installation

CocoaPods

Using cocoapods

pod 'ImageViewer.swift', '~> 3.0'

If you need remote image fetching:

pod 'ImageViewer.swift', '~> 3.0'
pod 'ImageViewer.swift/Fetcher', '~> 3.0'

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate Alamofire into your Xcode project using Carthage, specify it in your Cartfile:

github "michaelhenry/ImageViewer.swift" ~> 3.2

How to use it

The simplest way to to use this is by using the imageView.setupImageViewer()

imageView.setupImageViewer()

Example:

import ImageViewer_swift

let imageView = UIImageView()
imageView.image = UIImage(named: 'cat1')
...
imageView.setupImageViewer()

Or you might load it from a URL

imageView.setupImageViewer(url: URL(string: "https://example.com/image.jpg")!)

Or you might load it with an array of images [UIImage]

let images = [
    UIImage(named: "cat1"),
    UIImage(named: "cat1"),
    UIImage(named: "cat1")
]
imageView.setupImageViewer(images: images)

Or you might load it with an array of URL [URL]

let urls = [
    URL(string: "https://example.com/your-image-1.jpg")!,
    URL(string: "https://example.com/your-image-2.jpg")!,
    URL(string: "https://example.com/your-image-3.jpg")!
]
imageView.setupImageViewer(urls: urls)

How to change the layout or options that are available

You can check this file ImageViewerOption.swift to see what are the available options that will fit to your needs.

public enum ImageViewerOption {
    case theme(ImageViewerTheme)
    case closeIcon(UIImage)
    case rightNavItemTitle(String, onTap: ((Int) -> Void)?)
    case rightNavItemIcon(UIImage, onTap: ((Int) -> Void)?)
}

You could also check the Demo Project for more information.

Easy peasy :)

Please let me know if you have any questions.

Cheers, Michael Henry Pantaleon

Twitter: @michaelhenry119

Linked in: ken119

http://www.iamkel.net

Dependency

License

MIT

Copyright (c) 2013 Michael Henry Pantaleon (http://www.iamkel.net). All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].