Skip to content

Commit

Permalink
Use correct selector in a BottomSheetViewController call (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio authored Jul 19, 2023
2 parents aa6da98 + 683f716 commit b9476a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ _None._

_None._

## 1.13.1

### Bug Fixes

- 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.13.0

### New Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ public class BottomSheetViewController: UIViewController {
fatalError("init(coder:) has not been implemented")
}

private var gripButton: UIButton = {
private lazy var gripButton: UIButton = {
let button = GripButton()
button.translatesAutoresizingMaskIntoConstraints = false
button.addTarget(
BottomSheetViewController.self,
self,
action: #selector(buttonPressed),
for: .touchUpInside
)
Expand Down
2 changes: 1 addition & 1 deletion WordPressUI.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Pod::Spec.new do |s|
s.name = 'WordPressUI'
s.version = '1.13.0'
s.version = '1.13.1'

s.summary = 'Home of reusable WordPress UI components.'
s.description = <<-DESC
Expand Down

0 comments on commit b9476a2

Please sign in to comment.