Skip to content

Commit 5741044

Browse files
Merge pull request #18575 from wordpress-mobile/fix/reader-interests-view-crash
Empty Stats: Fix crash during Reader Discover tour
2 parents 056191c + c61f80f commit 5741044

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

WordPress/Classes/Utility/Animator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Animator: NSObject {
5858
preamble?()
5959
}
6060

61-
UIView.animate(withDuration: duration, delay: 0, options: .curveEaseOut, animations: animations) { [unowned self] _ in
61+
UIView.animate(withDuration: duration, delay: 0, options: .curveEaseOut, animations: animations) { _ in
6262
self.animationsInProgress -= 1
6363

6464
if self.animationsInProgress == 0 {

WordPress/Classes/ViewRelated/Cells/ExpandableCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ExpandableCell: WPReusableTableViewCell {
3838
alpha = 0
3939
}
4040

41-
UIView.animate(withDuration: 0.2) { [unowned self] in
41+
UIView.animate(withDuration: 0.2) {
4242
self.chevronImageView?.transform = transform
4343
self.expandableTextView?.alpha = alpha
4444
}

WordPress/Classes/ViewRelated/Reader/ReaderCardsStreamViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ private extension ReaderCardsStreamViewController {
265265

266266
UIView.animate(withDuration: 0.2, animations: {
267267
self.selectInterestsViewController.view.alpha = 0
268-
}) { [unowned self] _ in
268+
}) { _ in
269269
self.selectInterestsViewController.remove()
270270
self.selectInterestsViewController.view.alpha = 1
271271
}

0 commit comments

Comments
 (0)