Skip to content

Commit

Permalink
Release 1.3.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
zvonicek committed May 20, 2017
1 parent a5e5661 commit 650cd65
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 18 deletions.
61 changes: 61 additions & 0 deletions Example/ImageSlideshow/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,66 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>akamaihd.net</key>
<dict>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>api.petabyet.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
<key>facebook.com</key>
<dict>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>fbcdn.net</key>
<dict>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>internaldemo.clear.sx</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.0</string>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.0</string>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
<key>newapi.clear.sx</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>
</dict>
</plist>
26 changes: 9 additions & 17 deletions Example/ImageSlideshow/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,15 @@ class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()

slideshow.backgroundColor = UIColor.white
slideshow.slideshowInterval = 5.0
slideshow.pageControlPosition = PageControlPosition.underScrollView
slideshow.pageControl.currentPageIndicatorTintColor = UIColor.lightGray
slideshow.pageControl.pageIndicatorTintColor = UIColor.black
slideshow.contentScaleMode = UIViewContentMode.scaleAspectFill
// optional way to show activity indicator during image load (skipping the line will show no activity indicator)
slideshow.activityIndicator = DefaultActivityIndicator()
slideshow.currentPageChanged = { page in
print("current page:", page)
}

// try out other sources such as `afNetworkingSource`, `alamofireSource` or `sdWebImageSource` or `kingfisherSource`
slideshow.setImageInputs(localSource)

let recognizer = UITapGestureRecognizer(target: self, action: #selector(ViewController.didTap))
slideshow.addGestureRecognizer(recognizer)
self.slideshow.setImageInputs(alamofireSource)
self.slideshow.contentScaleMode = .scaleAspectFill
self.slideshow.slideshowInterval = 5
self.slideshow.zoomEnabled = true
self.slideshow.pageControlPosition = .hidden
self.slideshow.activityIndicator = DefaultActivityIndicator(style: .whiteLarge, color: .black)

//let recognizer = UITapGestureRecognizer(target: self, action: #selector(ViewController.didTap))
//slideshow.addGestureRecognizer(recognizer)
}

func didTap() {
Expand Down
2 changes: 1 addition & 1 deletion ImageSlideshow.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "ImageSlideshow"
s.version = "1.3.0"
s.version = "1.3.1"
s.summary = "Image slideshow written in Swift with circular scrolling, timer and full screen viewer"

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit 650cd65

Please sign in to comment.