diff --git a/CHANGELOG.md b/CHANGELOG.md index d1b9758e..01175cb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 in specific scenarios. - Fixed an issue where the `accessibilityAlignment` property of `HGroup` was not being respected. - Fixed an issue where `accessibilityAlignment` and `horizontalAlignment` would overwrite one another +- Break a temporary retain cycle in `.system` presentation style ### Changed - `CollectionViewConfiguration.usesBatchUpdatesForAllReloads` now defaults to `true`. diff --git a/Sources/EpoxyPresentations/PresentationModel.swift b/Sources/EpoxyPresentations/PresentationModel.swift index f8f0c071..eac42eef 100644 --- a/Sources/EpoxyPresentations/PresentationModel.swift +++ b/Sources/EpoxyPresentations/PresentationModel.swift @@ -290,10 +290,10 @@ extension PresentationModel.Presentation { forName: .init("\(UIPresentationController.self)DismissalTransitionDidEndNotification"), object: presented, queue: .main, - using: { _ in + using: { [didDismiss = context.didDismiss] _ in guard token != nil else { return } token = nil - context.didDismiss() + didDismiss() }) context.presenting.present(