Skip to content

Commit

Permalink
Merge branch 'release/2.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Boldt committed Jan 12, 2019
2 parents 0a5e678 + babb8e2 commit 5a39c0d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## 2.0.1 (2018-12-5)
## 2.1.1 (2018-12-1)
- flashing blur effect bugfix

## 2.1.0 (2018-12-5)
- new parallax option on slide presentations
- interaction configuration can now be constrained by mode (.dismiss, .present)

Expand Down
2 changes: 1 addition & 1 deletion Jelly.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Pod::Spec.new do |s|
s.name = 'Jelly'
s.version = '2.1.0'
s.version = '2.1.1'
s.summary = 'Jelly is a library for animated, non-interactive & interactive viewcontroller transitions and presentations with the focus on a simple and yet flexible API.'

s.description = <<-DESC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ extension InteractionController {
cancel()
case .ended:
interactionInProgress = false
if (!shouldCompleteTransition && progress == 0) {
presentationController?.cancelAnimationEffect()
}
shouldCompleteTransition ? finish() : cancel()
default:
break
Expand Down
10 changes: 10 additions & 0 deletions Jelly/Classes/private/PresentationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ extension PresentationController {
self.dimmingView.alpha = alpha
})
}

public func cancelAnimationEffect() {
let backgroundStyle = presentation.presentationUIConfiguration.backgroundStyle
switch backgroundStyle {
case .blurred(let style):
blurView.effect = UIBlurEffect(style: style)
case .dimmed(let alpha):
dimmingView.alpha = alpha
}
}
}
extension PresentationController {
private func setupBlurView () {
Expand Down

0 comments on commit 5a39c0d

Please sign in to comment.