Skip to content

Commit

Permalink
fix(leaks): update ReadableViewController, add unowned to layout clos…
Browse files Browse the repository at this point in the history
…ure to prevent self-strong-referencing
  • Loading branch information
Gio2018 committed Mar 30, 2023
1 parent 48496f3 commit f2deccc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ReadableViewController: UIViewController {
collectionViewLayout: layout
)

private lazy var layout = UICollectionViewCompositionalLayout { [self] in
private lazy var layout = UICollectionViewCompositionalLayout { [unowned self] in
return self.buildSection(index: $0, environment: $1)
}

Expand Down

0 comments on commit f2deccc

Please sign in to comment.