Break retain cycle between split controller and indicator presenters

This commit is contained in:
Andy Uhnak
2022-03-09 09:50:56 +00:00
parent 72179db80f
commit 3ad2348639
3 changed files with 54 additions and 13 deletions
@@ -28,8 +28,8 @@ public protocol UserIndicatorPresentationContext {
var indicatorPresentingViewController: UIViewController? { get }
}
/// A simple implementation of `UserIndicatorPresentationContext` that simply uses
/// the a weak reference of the passed-in view controller as the presentation context.
/// A simple implementation of `UserIndicatorPresentationContext` that uses a weak reference
/// to the passed-in view controller as the presentation context.
public class StaticUserIndicatorPresentationContext: UserIndicatorPresentationContext {
// The presenting view controller will be the parent of the user indicator,
// and the indicator holds a strong reference to the context, so the view controller