Skip to content

Commit

Permalink
Merge pull request #157 from PeterStaev/nativescript
Browse files Browse the repository at this point in the history
Export important APIs to ObjC
  • Loading branch information
0ber committed Sep 10, 2018
2 parents 959c31e + 8777fc4 commit 882a279
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FoldingCell/FoldingCell/FoldingCell.swift
Expand Up @@ -49,7 +49,7 @@ open class FoldingCell: UITableViewCell {
- Open: Open direction
- Close: Close direction
*/
public enum AnimationType {
@objc public enum AnimationType : Int {
case open
case close
}
Expand All @@ -65,7 +65,7 @@ open class FoldingCell: UITableViewCell {
/**
Call this method in methods init(style: UITableViewCellStyle, reuseIdentifier: String?) after creating Views
*/
open func commonInit() {
@objc open func commonInit() {
configureDefaultState()

selectionStyle = .none
Expand Down Expand Up @@ -277,11 +277,11 @@ open class FoldingCell: UITableViewCell {
return animationView?.alpha == 1 ? true : false
}

open var isUnfolded = false
@objc open var isUnfolded = false

// MARK: Animations

open func animationDuration(_ itemIndex: NSInteger, type: AnimationType) -> TimeInterval {
@objc open func animationDuration(_ itemIndex: NSInteger, type: AnimationType) -> TimeInterval {
return type == .close ? durationsForCollapsedState[itemIndex] : durationsForExpandedState[itemIndex]
}

Expand Down

0 comments on commit 882a279

Please sign in to comment.