From 66803a2d96de728ba062ee5d6400515abb06b505 Mon Sep 17 00:00:00 2001 From: Paolo Musolino Date: Tue, 18 Jul 2023 15:36:36 +0200 Subject: [PATCH 1/4] 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`. --- .../WordPressUI/BottomSheet/BottomSheetViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) From e7a7a72ec3f778e65517076be099088227171521 Mon Sep 17 00:00:00 2001 From: Paolo Musolino Date: Tue, 18 Jul 2023 15:37:52 +0200 Subject: [PATCH 2/4] update: changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 586c41a..c01cd50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,12 @@ _None._ _None._ +## 1.13.1 + +### New Features + +- 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 From 7c48ae434db04d0244009a609859e8288ad2f175 Mon Sep 17 00:00:00 2001 From: Paolo Musolino Date: Tue, 18 Jul 2023 15:38:50 +0200 Subject: [PATCH 3/4] Bump version to 1.13.1 --- WordPressUI.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 683f716ce95c22a2553665a4f15bc21bf628355b Mon Sep 17 00:00:00 2001 From: Paolo Musolino Date: Wed, 19 Jul 2023 16:32:27 +0200 Subject: [PATCH 4/4] Updated Changelog file --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c01cd50..d01c9bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,7 +50,7 @@ _None._ ## 1.13.1 -### New Features +### 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`.