diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a751140..adb9a2f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ N/A #### Bugfixes - Fix presented modal view (over context) frame when device orientation changed. [#516](https://github.com/IBAnimatable/IBAnimatable/pull/516) by [@phimage](https://github.com/phimage) +- Fix dismissal animation type of AnimatableModalViewController when the type is set in Interface Builder. [#526](https://github.com/IBAnimatable/IBAnimatable/pull/526) by [@kazyk](https://github.com/kazyk) ### [5.0.0](https://github.com/IBAnimatable/IBAnimatable/releases/tag/5.0.0) diff --git a/Sources/Controllers/AnimatableModalViewController.swift b/Sources/Controllers/AnimatableModalViewController.swift index 1cf1b3d5..88ef08fb 100755 --- a/Sources/Controllers/AnimatableModalViewController.swift +++ b/Sources/Controllers/AnimatableModalViewController.swift @@ -32,7 +32,7 @@ open class AnimatableModalViewController: UIViewController, PresentationDesignab @IBInspectable var _dismissalAnimationType: String? { didSet { - if let animationType = PresentationAnimationType(string: _presentationAnimationType) { + if let animationType = PresentationAnimationType(string: _dismissalAnimationType) { dismissalAnimationType = animationType } }