Skip to content

Commit

Permalink
Update to 1.7.5
Browse files Browse the repository at this point in the history
Fix completion for confirmation.
  • Loading branch information
ivanvorobei committed Jul 11, 2019
1 parent ee5f9ee commit b8e8f8d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import UIKit

public enum SPStorkController {

static public func scrollViewDidScroll(_ scrollView: UIScrollView, indicatorInset: CGFloat? = nil) {
static public func scrollViewDidScroll(_ scrollView: UIScrollView) {
if let controller = self.controller(for: scrollView) {
if let presentationController = self.presentationController(for: controller) {
let translation = -(scrollView.contentOffset.y + scrollView.contentInset.top)
Expand Down Expand Up @@ -61,7 +61,7 @@ public enum SPStorkController {
static public func dismissWithConfirmation(controller: UIViewController, completion: (()->())?) {
if let controller = self.presentationController(for: controller) {
controller.dismissWithConfirmation(prepare: nil, completion: {
print("Custom completion for confirmation. Confirmation is optional.")
completion?()
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion SPStorkController.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "SPStorkController"
s.version = "1.7.4"
s.version = "1.7.5"
s.summary = "Very similar to the controllers displayed in Apple Music, Podcasts and Mail Apple's applications."
s.homepage = "https://github.com/IvanVorobei/SPStorkController"
s.source = { :git => "https://github.com/IvanVorobei/SPStorkController.git", :tag => s.version }
Expand Down
4 changes: 2 additions & 2 deletions Source/SPStorkController/SPStorkController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import UIKit

public enum SPStorkController {

static public func scrollViewDidScroll(_ scrollView: UIScrollView, indicatorInset: CGFloat? = nil) {
static public func scrollViewDidScroll(_ scrollView: UIScrollView) {
if let controller = self.controller(for: scrollView) {
if let presentationController = self.presentationController(for: controller) {
let translation = -(scrollView.contentOffset.y + scrollView.contentInset.top)
Expand Down Expand Up @@ -61,7 +61,7 @@ public enum SPStorkController {
static public func dismissWithConfirmation(controller: UIViewController, completion: (()->())?) {
if let controller = self.presentationController(for: controller) {
controller.dismissWithConfirmation(prepare: nil, completion: {
print("Custom completion for confirmation. Confirmation is optional.")
completion?()
})
}
}
Expand Down

0 comments on commit b8e8f8d

Please sign in to comment.