A Swift Image SlideShow for iOS
Clone or download
dimix Merge pull request #6 from jobinsjohn/patch-1
modified readme with import statement
Latest commit c69b79c Jan 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Demo Added current slide. Oct 12, 2017
Sources/ImageSlideShow Added current slide. Oct 12, 2017
.gitignore Create .gitignore Oct 16, 2016
.swift-version Updated swift-version and podspec. Sep 27, 2017
.travis.yml Create .travis.yml Jan 18, 2017
ImageSlideShowSwift.podspec Added current slide. Oct 12, 2017
LICENSE Initial commit Oct 16, 2016
README.md modified readme with import statement Jan 8, 2018
demo.gif Updated GIF. Oct 29, 2016

README.md

License Platform Version Carthage compatible

Swift ImageSlideShow for iOS

ImageSlideShow is a simple Slideshow for images (Picture, Photos) for your iOS apps written in Swift 4. You can use this class on iPhone and iPad as well.

alt tag

Features

  • All in one slideshow with generic protocol to provide images directly from the model
  • Pan-gesture-to-dismiss behaviour (like Facebook)

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like ImageSlideShow in your projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.0.1+ is required to build ImageSlideShow (along with Swift 4 and Xcode 8).

Podfile

To integrate ImageSlideShow into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'TargetName' do
  use_frameworks!
  pod 'ImageSlideShowSwift'
end

Then, run the following command:

$ pod install

Installation with Carthage

Currently only iOS is supported.

  1. Add the following to your Cartfile:

    github "dimix/ImageSlideShow"
    
  2. Run carthage update --platform ios

  3. Copy the framework into your project and you are good to go.

How to Use

1. Import ImageSlideShowSwift module

Import ImageSlideShowSwift

ImageSlideShowSwift

2. Instantiate the controller

ImageSlideShowViewController.presentFrom(self){ [weak self] controller in
			
	controller.dismissOnPanGesture = true
	controller.slides = self?.images
	controller.enableZoom = true
	controller.controllerDidDismiss = {
		print("Controller Dismissed")
	}
			
}

You need to provide an array of [ImageSlideShowProtocol] objects. You can use the Demo project to watch details.

Requirements

Current version is compatible with:

  • Swift 4.0
  • XCode 9
  • iOS 9 or later

Are you searching for an old (unsupported) version? Check out:

Credits

Thanks to Lasse-Hansen for the Carthage support!