Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
521c534a30 | ||
|
|
de19661aa5 | ||
|
|
a4d60e40f7 | ||
|
|
938a7a13c0 |
@@ -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,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'
|
||||
|
||||
Reference in New Issue
Block a user