Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 66803a2

Browse files
committed
Addresses a crash in the BottomSheetViewController that was occurring due to an incorrect usage of a selector. The crash was caused by trying to call the buttonPressed instance method as a class method on BottomSheetViewController.self.
1 parent aa6da98 commit 66803a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/WordPressUI/BottomSheet/BottomSheetViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ public class BottomSheetViewController: UIViewController {
9191
fatalError("init(coder:) has not been implemented")
9292
}
9393

94-
private var gripButton: UIButton = {
94+
private lazy var gripButton: UIButton = {
9595
let button = GripButton()
9696
button.translatesAutoresizingMaskIntoConstraints = false
9797
button.addTarget(
98-
BottomSheetViewController.self,
98+
self,
9999
action: #selector(buttonPressed),
100100
for: .touchUpInside
101101
)

0 commit comments

Comments
 (0)