Skip to content

Commit

Permalink
Fix issue where transitions are messed up when expansionStyle is set …
Browse files Browse the repository at this point in the history
…to nil

See issue #23.
  • Loading branch information
jerkoch committed Mar 29, 2017
1 parent c6a4ffb commit 400bfb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SwipeActionsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class SwipeActionsView: UIView {
}

var contentSize: CGSize {
if let expansionStyle = options.expansionStyle, !expansionStyle.elasticOverscroll || visibleWidth < preferredWidth {
if options.expansionStyle?.elasticOverscroll != true || visibleWidth < preferredWidth {
return CGSize(width: visibleWidth, height: bounds.height)
} else {
let scrollRatio = max(0, visibleWidth - preferredWidth)
Expand Down

0 comments on commit 400bfb0

Please sign in to comment.