File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
WooCommerce/Classes/ViewRelated/Reviews Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -385,9 +385,7 @@ private extension ReviewDetailsViewController {
385385 }
386386
387387 commentCell. onReply = { [ weak self] in
388- guard let self = self else {
389- return
390- }
388+ guard let self else { return }
391389
392390 let reviewReplyViewModel = ReviewReplyViewModel ( siteID: self . siteID, reviewID: self . productReview. reviewID)
393391 let reviewReplyViewController = ReviewReplyHostingController ( viewModel: reviewReplyViewModel)
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ import SwiftUI
44/// Hosting controller that wraps a `ReviewDetailsReply` view.
55///
66final class ReviewReplyHostingController : UIHostingController < ReviewReply > , UIAdaptivePresentationControllerDelegate {
7+
8+ private let viewModel : ReviewReplyViewModel
9+
710 init ( viewModel: ReviewReplyViewModel ) {
11+ self . viewModel = viewModel
812 super. init ( rootView: ReviewReply ( viewModel: viewModel) )
913
1014 // Needed because a `SwiftUI` cannot be dismissed when being presented by a UIHostingController
You can’t perform that action at this time.
0 commit comments