Skip to content

Commit 4c67aaf

Browse files
author
Martin Barreto
committed
Merge pull request #4 from charliewilliams/master
Swift 2.1 compatibility & typo fix
2 parents 93cb6fc + e8dba08 commit 4c67aaf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Example/CustomActionControllers/Skype.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,11 @@ public class SkypeActionController: ActionController<SkypeCell, String, UICollec
217217
self.displayLink = CADisplayLink(target: self, selector: "update:")
218218
self.displayLink.addToRunLoop(NSRunLoop.mainRunLoop(), forMode: NSDefaultRunLoopMode)
219219
}
220-
animationCount++
220+
animationCount += 1
221221
}
222222

223223
private func finishAnimation() {
224-
animationCount--
224+
animationCount -= 1
225225
if animationCount == 0 {
226226
displayLink.invalidate()
227227
displayLink = nil

Source/Action.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public struct Action<T> {
3737
public private(set) var data: T?
3838
public var enabled: Bool
3939
public private(set) var style = ActionStyle.Default
40-
private (set) var handler: (Action<T> -> Void)?
40+
public private (set) var handler: (Action<T> -> Void)?
4141

4242
public init(_ data: T?, style: ActionStyle, handler: (Action<T> -> Void)?) {
4343
enabled = true

Source/ActionController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public enum HeaderSpec<HeaderType: UICollectionReusableView, HeaderDataType> {
7373

7474
private enum ReusableViewIds: String {
7575
case Cell = "Cell"
76-
case Header = "Heeder"
76+
case Header = "Header"
7777
case SectionHeader = "SectionHeader"
7878
}
7979

0 commit comments

Comments
 (0)