Imageslideshow

Dec 11, 2016

Popularity
0.0
Stabe
Activity
2.0
Growing

Imageslideshow

๐Ÿ–ผ ImageSlideshow

Swift image slideshow with circular scrolling, timer and full screen viewer

Build Status Version Carthage Compatible License Platform

๐Ÿ“ฑ Example

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

๐Ÿ”ง Installation

CocoaPods

ImageSlideshow is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ImageSlideshow', '~> 1.0.0'

Carthage

To integrate ImageSlideshow into your Xcode project using Carthage, specify it in your Cartfile:

github "zvonicek/ImageSlideshow" "1.0.0"

Swift 2.3 and Swift 3 support

Version 1.0 supports Swift 3. For Swift 2.2 and Swift 2.3 compatible code use version 0.6 or branch swift-2.3.

๐Ÿ”จ How to use

Add ImageSlideshow view to your view hiearchy either in Interface Builder or in code.

Loading images

Set images by using setImageInputs method on ImageSlideshow instance with an array of InputSources. By default you can use ImageSource which takes UIImage or few other InputSources for most popular networking libraries. You can also create your own input source by implementing InputSource protocol.

Library InputSource name Pod
AlamofireImage AlamofireSource pod "ImageSlideshow/Alamofire"
AFNetworking AFURLSource pod "ImageSlideshow/AFURL"
SDWebImage SDWebImageSource pod "ImageSlideshow/SDWebImage"
Kingfisher KingfisherSource pod "ImageSlideshow/Kingfisher"
slideshow.setImageInputs([
  ImageSource(image: UIImage(named: "myImage"))!, 
  ImageSource(image: UIImage(named: "myImage2"))!,
  AlamofireSource(urlString: "https://images.unsplash.com/photo-1432679963831-2dab49187847?w=1080"),
  KingfisherSource(urlString: "https://images.unsplash.com/photo-1432679963831-2dab49187847?w=1080")
])

Configuration

Behaviour is configurable by those properties:

  • slideshowInterval - in case you want automatic slideshow, set up the interval between sliding to next picture
  • zoomEnabled - enables zooming
  • circular - enables circular scrolling
  • pageControlPosition - configures position of UIPageControll (hidden, inside scroll view or under scroll view)
  • contentScaleMode - configures the scaling (UIViewContentMode.ScaleAspectFit by default)
  • draggingEnabled - enables dragging
  • currentPageChanged - closure called on page change
  • preload - image preloading configuration (all images are preloaded by default)

Full Screen view

There is also a possibility to open full-screen image view using attached FullScreenSlideshowViewController. The simplest way is to call:

override func viewDidLoad() {
  let gestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(ViewController.didTap))
  slideshow.addGestureRecognizer(gestureRecognizer)
}

func didTap() {
  slideshow.presentFullScreenController(from: self)
}

FullScreenSlideshowViewController can also be instantiated and configured manually if more advanced behavior is needed.

๐Ÿ‘ค Author

Petr ZvoniฬcฬŒek

๐Ÿ“„ License

ImageSlideshow is available under the MIT license. See the LICENSE file for more info.

๐Ÿ‘€ References

Inspired by projects:

24 watchers
189 commits
398 Star

swift image slideshow with circular scrolling timer and full screen viewer

More from Image
- -
instagram-like image filter viewcontroller
- -
an ios sdk for sharing photos that automatically expire and can be deleted at any time
- -
avatarimageview is a uiimageview subclass designed to show a users profile picture falling back to their initials when a picture is unavailable
- -
a convenient and easy to use image viewer for your ios app
- -
facebook album photo picker written in swift
- -
multi image downloader with priority in swift
0.0 0.9
facebook album photo picker written in swift
0.0 0.2
multi image downloader with priority in swift
- -
remote images as easy as one two three
- -
syntactic sugar for acceleratevimage and core image filters
- -
a uiimageview class for creating circular avatar images ibdesignable to make all changes via storyboard
- -
swift image slideshow with circular scrolling timer and full screen viewer
- -
highly customizable action sheet controller with assets preview
- -
create complementary gradients generated from dominant and prominent colors in supplied image inspired by gradejs
- -
an extension that gives uiimageview the ability to focus on faces within an image when using aspectfill
- -
imagepickersheetcontroller is like the custom photo action sheet in imessage just without the glitches
- -
an image viewer a la twitter
- -
a simple image full screen pop up
- -
simple photobrowserviewer inspired by facebook twitter photo browsers written by swift
- -
makes dealing with images buttery smooth
- -
a lightweight 3d linear carousel with parallax effect
- -
a view that takes a set of images make transition from one to another by using flipping effects
- -
itunes style color fetcher for uiimage e
- -
a simple ios photo and video browser with grid view captions and selections
- -
gpu-based media processing library using metal written in swift
- -
ken burns effect with face recognition
- -
an implementation of high pass skin smoothing using apples core image framework
- -
gpuimage 2 is a bsd-licensed swift framework for gpu-accelerated video and image processing
- -
simple fullscreen image gallery with tap swipe and pinch gestures
- -
library that lets you add marching ants animated selection to the edges of the images
- -
a lemony fresh ios image viewer written in swift
- -
a lightweight and pure swift implemented library for downloading and caching image from the web
- -
an extremely high-performance lightweight and energy-efficient pure swift async web image loader with memory and disk caching for ios and watch
- -
a photo gallery for ios with a modern feature set similar features as the facebook photo browser
- -
a uiimageview allow you to add multiple label multiple line text support on it you can edit rotate resize the label as you want with one finger then render the text on image
- -
rounded async imageview downloader lightly cached and written in swift
- -
an image cropper for ios like in the contacts app with support for landscape orientation
- -
the swift version of
Ody
- -
ody is an easy to use random image generator built with swift perfect for placeholders
- -
fabulous image processing in swift
- -
easy customizable avatar image asynchronously with progress bar animated
- -
image loading framework with loaders
- -
focus on avatar caching
- -
a lightweight and fast image loader for ios written in swift
- -
a swift implementation of fastimage supports png gif and jpeg
- -
asynchronous image loading framework supports webp apng gif
- -
ios library for quickly displaying images while scrolling
- -
beautiful flag icons for usage in apps and on the web
- -
an image component library for alamofire
- -
easily adding animated blurunblur effects to an image
- -
advanced framework for managing images
- -
a thread safe performant feature rich image fetcher
- -
a library to render uiimage as ascii art
- -
a view controller that allows users to crop uiimage objects
- -
a custom image view that implements device motion scrolling
- -
download and decode progressive jpegs
- -
interactive ios image viewer
- -
photo browser viewer
- -
slideshow and image viewer
- -
an image download and caching library for ios written in swift
- -
asynchronous image downloader with cache support with an uiimageview category
- -
an open source ios framework for gpu-based image and video processing
- -
ios uiimage processing functions using the vdspaccelerate framework for speed
- -
modern framework for fetching images from various sources zero config yet immense customization and extensibility uses nsurlsession
- -
simple extension of uiimageview for loading and displaying images asynchronously without lock up the ui
1.0 4.2
highly customizable action sheet controller with assets preview
0.0 0.0
remote images as easy as one two three
0.0 1.0
create complementary gradients generated from dominant and prominent colors in supplied image inspired by gradejs
0.0 0.3
an extension that gives uiimageview the ability to focus on faces within an image when using aspectfill
0.0 0.3
syntactic sugar for acceleratevimage and core image filters
0.0 0.1
library that lets you add marching ants animated selection to the edges of the images
0.0 0.0
imagepickersheetcontroller is like the custom photo action sheet in imessage just without the glitches
0.0 0.1
an extension that gives uiimageview the ability to focus on faces within an image when using aspectfill
0.0 2.5
an image viewer a la twitter
Moa
0.0 0.5
an image download extension of the image view for ios tvos and macos e
0.0 0.2
a uiimageview class for creating circular avatar images ibdesignable to make all changes via storyboard
0.0 0.1
ken burns effect with face recognition
0.0 0.0
itunes style color fetcher for uiimage e
0.0 2.0
makes dealing with images buttery smooth
0.0 0.6
a view that takes a set of images make transition from one to another by using flipping effects
1.0 2.5
a simple image full screen pop up
0.0 0.4
an implementation of high pass skin smoothing using apples core image framework
0.0 0.5
simple photobrowserviewer inspired by facebook twitter photo browsers written by swift
0.0 0.0
a lightweight 3d linear carousel with parallax effect
2.0 0.9
a simple ios photo and video browser with grid view captions and selections
0.0 1.0
gpu-based media processing library using metal written in swift
0.0 1.9
simple fullscreen image gallery with tap swipe and pinch gestures
1.0 0.0
gpuimage 2 is a bsd-licensed swift framework for gpu-accelerated video and image processing
0.0 0.0
a lemony fresh ios image viewer written in swift
0.0 1.6
focus on avatar caching
0.0 0.5
fabulous image processing in swift
0.0 3.4
a lightweight and fast image loader for ios written in swift
0.0 0.1
the swift version of
0.0 0.2
rounded async imageview downloader lightly cached and written in swift
0.0 0.3
a uiimageview allow you to add multiple label multiple line text support on it you can edit rotate resize the label as you want with one finger then render the text on image
0.0 1.2
an extremely high-performance lightweight and energy-efficient pure swift async web image loader with memory and disk caching for ios and watch
0.0 1.0
a swift implementation of fastimage supports png gif and jpeg
0.0 0.1
easy customizable avatar image asynchronously with progress bar animated
1.0 6.0
a lightweight and pure swift implemented library for downloading and caching image from the web
0.0 0.3
a photo gallery for ios with a modern feature set similar features as the facebook photo browser
0.0 1.0
image loading framework with loaders
Ody
0.0 1.0
ody is an easy to use random image generator built with swift perfect for placeholders
0.0 5.0
a thread safe performant feature rich image fetcher
0.0 4.7
a view controller that allows users to crop uiimage objects
0.0 0.0
beautiful flag icons for usage in apps and on the web
0.0 1.5
an image cropper for ios like in the contacts app with support for landscape orientation
0.0 0.5
asynchronous image loading framework supports webp apng gif
0.0 0.0
image slider with very simple interface
2.0 0.7
ios library for quickly displaying images while scrolling
0.0 1.0
an image component library for alamofire
0.0 0.1
a library to render uiimage as ascii art
0.0 1.0
a custom image view that implements device motion scrolling
0.0 3.6
advanced framework for managing images
0.0 0.0
easily adding animated blurunblur effects to an image
0.0 0.5
interactive ios image viewer
0.0 0.2
simple extension of uiimageview for loading and displaying images asynchronously without lock up the ui
4.0 5.9
asynchronous image downloader with cache support with an uiimageview category
0.0 0.1
ios uiimage processing functions using the vdspaccelerate framework for speed
0.0 0.5
photo browser viewer
0.0 3.5
slideshow and image viewer
3.0 5.4
an open source ios framework for gpu-based image and video processing
0.0 0.0
an image download and caching library for ios written in swift
0.0 4.5
modern framework for fetching images from various sources zero config yet immense customization and extensibility uses nsurlsession
0.0 0.3
download and decode progressive jpegs