Skip to content

Commit

Permalink
2.5.1 (#268)
Browse files Browse the repository at this point in the history
* Update README.md (#264)

* Fix swipeCells for UICollectionView (#266)

* Rev version up to 2.5.1 and update CHANGELOG.
  • Loading branch information
kurabi authored Dec 13, 2018
1 parent 429aab4 commit cd5984a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

`SwipeCellKit` adheres to [Semantic Versioning](http://semver.org/).

## [2.5.1](https://github.com/jerkoch/SwipeCellKit/releases/tag/2.5.0)

#### Fixed

- Cells do not hide correctly when also using non-`SwipeCollectionViewCell` cells in `UICollectionView`. (#265)

---

## [2.5.0](https://github.com/jerkoch/SwipeCellKit/releases/tag/2.5.0)

#### Fixed
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.org/jerkoch/SwipeCellKit.svg)](https://travis-ci.org/jerkoch/SwipeCellKit)
[![Version Status](https://img.shields.io/cocoapods/v/SwipeCellKit.svg)][podLink]
[![Swift 4.1](https://img.shields.io/badge/Swift-4.1-orange.svg?style=flat)](https://developer.apple.com/swift/)
[![Swift 4.2](https://img.shields.io/badge/Swift-4.2-orange.svg?style=flat)](https://developer.apple.com/swift/)
[![license MIT](https://img.shields.io/cocoapods/l/SwipeCellKit.svg)][mitLink]
[![Platform](https://img.shields.io/cocoapods/p/SwipeCellKit.svg)][docsLink]
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
Expand Down Expand Up @@ -74,8 +74,8 @@ The expansion style describes the behavior when the cell is swiped past a define

## Requirements

* Swift 4.1
* Xcode 9+
* Swift 4.2
* Xcode 10+
* iOS 9.0+

## Installation
Expand All @@ -91,8 +91,8 @@ pod 'SwipeCellKit'
# Get the latest on develop
pod 'SwipeCellKit', :git => 'https://github.com/SwipeCellKit/SwipeCellKit.git', :branch => 'develop'

# If you like to live dangerously
pod 'SwipeCellKit', :git => 'https://github.com/SwipeCellKit/SwipeCellKit.git', :branch => 'swift_4.2'
# If you have NOT upgraded to Swift 4.2, use the last non-swift 4.2 compatible release
pod 'SwipeCellKit', '2.4.3'
````

#### [Carthage](https://github.com/Carthage/Carthage)
Expand Down Expand Up @@ -150,7 +150,7 @@ Set the `delegate` property on `SwipeCollectionViewCell`:

````swift
override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as! as! SwipeCollectionViewCell
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as! SwipeCollectionViewCell
cell.delegate = self
return cell
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extension UITableView {

extension UICollectionView {
var swipeCells: [SwipeCollectionViewCell] {
return visibleCells as? [SwipeCollectionViewCell] ?? []
return visibleCells.compactMap({ $0 as? SwipeCollectionViewCell })
}

func hideSwipeCell() {
Expand Down
2 changes: 1 addition & 1 deletion Source/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.5.0</string>
<string>2.5.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion SwipeCellKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SwipeCellKit'
s.version = '2.5.0'
s.version = '2.5.1'
s.license = 'MIT'

s.summary = 'Swipeable UITableViewCell based on the stock Mail.app, implemented in Swift.'
Expand Down

0 comments on commit cd5984a

Please sign in to comment.