Skip to content

Commit

Permalink
code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
0ber committed Feb 22, 2019
1 parent 851de6b commit 5afa9a0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions FoldingCell/FoldingCell/FoldingCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,8 @@ open class FoldingCell: UITableViewCell {
.lazy
.compactMap { $0 as? RotatedView }
.forEach {
if animationType == .open {
$0.alpha = 0
} else {
$0.alpha = 1
$0.backView?.alpha = 0
}
$0.alpha = animationType == .open ? 0 : 1
if animationType != .open { $0.backView?.alpha = 0 }
}
}
}
Expand Down

0 comments on commit 5afa9a0

Please sign in to comment.