diff --git a/CHANGELOG.md b/CHANGELOG.md index 586c41a..d01c9bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Sources/WordPressUI/BottomSheet/BottomSheetViewController.swift b/Sources/WordPressUI/BottomSheet/BottomSheetViewController.swift index ffde0e1..aab04d1 100644 --- a/Sources/WordPressUI/BottomSheet/BottomSheetViewController.swift +++ b/Sources/WordPressUI/BottomSheet/BottomSheetViewController.swift @@ -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 ) diff --git a/WordPressUI.podspec b/WordPressUI.podspec index 5286f92..7701f34 100644 --- a/WordPressUI.podspec +++ b/WordPressUI.podspec @@ -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