Compare commits

..
4 Commits
Author SHA1 Message Date
Alex K 521c534a30 Fixes #62 2018-01-24 14:07:21 +03:00
Alex K de19661aa5 update podspec 2018-01-24 12:04:29 +03:00
Alex K a4d60e40f7 Merge branch 'fix69'
# Conflicts:
#	Source/ExpandingTableViewController/ExpandingTableViewController.swift
#	Source/TransitionDriver/TransitionDriver.swift
2018-01-24 12:00:23 +03:00
Alex K 938a7a13c0 Fixes #69 2018-01-24 11:57:57 +03:00
4 changed files with 3 additions and 16 deletions
@@ -12,8 +12,7 @@ import UIKit
open class ExpandingTableViewController: UITableViewController {
// MARK: Vars
/// The height of the table view header
/// The height of the table view header, set before transition
open var headerHeight: CGFloat = 236
var transitionDriver: TransitionDriver?
@@ -127,15 +127,3 @@ extension ExpandingViewController: UICollectionViewDataSource, UICollectionViewD
fatalError("need emplementation in subclass")
}
}
// MARK: UIScrollViewDelegate
extension ExpandingViewController {
public func scrollViewDidEndDecelerating(_: UIScrollView) {
let indexPath = IndexPath(row: currentIndex, section: 0)
if case let currentCell as BasePageCollectionCell = collectionView?.cellForItem(at: indexPath) {
currentCell.configurationCell()
}
}
}
@@ -227,7 +227,7 @@ extension TransitionDriver {
}
backViewFrame.origin.y = cell.backConstraintY.constant
cell.backConstraintY.constant = view.bounds.size.height / 2 - (view.bounds.size.height - 236) / 2 + insets
cell.backConstraintY.constant = view.bounds.size.height / 2 - (view.bounds.size.height - height) / 2 + insets
}
fileprivate func closeBackViewConfigurationConstraints(_ cell: BasePageCollectionCell?) {
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'expanding-collection'
s.version = '1.1.3'
s.version = '1.1.4'
s.summary = 'Transition animtion from CollectionView to TableView'
s.license = 'MIT'
s.homepage = 'https://github.com/Ramotion/expanding-collection'