From be571b0b178c88697e2de0022dc7e950758a6abc Mon Sep 17 00:00:00 2001 From: Julien K Date: Mon, 15 Oct 2018 17:35:31 +0200 Subject: [PATCH 1/3] [MessageLabel] Change privacy of properties and function to use allow people to use it in their own custom cell Revert "[MessageLabel] Change privacy of properties and function to use allow people to use it in their own custom cell" This reverts commit e902832887cc30c85910e059f58f1cf482a0c028. [MessageLabel] Change privacy of properties and function to use allow people to use it in their own custom cell [Update] Make handleGesture open [Update] --- Sources/Views/MessageLabel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Views/MessageLabel.swift b/Sources/Views/MessageLabel.swift index 4adb8f75..d451d486 100644 --- a/Sources/Views/MessageLabel.swift +++ b/Sources/Views/MessageLabel.swift @@ -399,7 +399,7 @@ open class MessageLabel: UILabel { } - internal func handleGesture(_ touchLocation: CGPoint) -> Bool { + open func handleGesture(_ touchLocation: CGPoint) -> Bool { guard let index = stringIndex(at: touchLocation) else { return false } From b9e11906d96ab9d7b1c12d5027dc192aedd13a2f Mon Sep 17 00:00:00 2001 From: Julien K Date: Sat, 27 Oct 2018 21:09:40 +0200 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a404e4f7..9420f200 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa ### Changed +- Change `handleGesture(touchLocation:)` in `MessageLabel` as open now. +[#912](https://github.com/MessageKit/MessageKit/pull/912) by [@julienkode](https://github.com/JulienKode) + - Fixed the way that the Strings and UIImages are parsed in the `InputTextView` to prevent crashes in `parseForComponents()`. [#791](https://github.com/MessageKit/MessageKit/pull/791) by [@nathantannar4](https://github.com/nathantannar4) From 59b28f73bf122616f15362788ebee00b61baeda0 Mon Sep 17 00:00:00 2001 From: Julien K Date: Sat, 27 Oct 2018 21:10:52 +0200 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9420f200..ad339742 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa ### Changed -- Change `handleGesture(touchLocation:)` in `MessageLabel` as open now. +- Change acl of `handleGesture(touchLocation:)` in `MessageLabel` from internal to open. [#912](https://github.com/MessageKit/MessageKit/pull/912) by [@julienkode](https://github.com/JulienKode) - Fixed the way that the Strings and UIImages are parsed in the `InputTextView` to prevent crashes in `parseForComponents()`.