603 Commits
Author SHA1 Message Date
Nathan TannarandGitHub 07f611daba Merge branch 'development' into patch-1 2018-11-01 16:43:45 -07:00
Julien KandJulien K be571b0b17 [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]
2018-10-26 12:32:12 +02:00
Nathan TannarandGitHub 3b3db11032 Merge pull request #879 from RealBonus/enhancement/customMessageKind
MessagesDataSource & MessagesLayoutDelegate methods for MessageType.custom
2018-10-25 18:02:46 -07:00
Pavel Anokhov eb848be3f0 Changelog and some comments 2018-10-19 16:32:46 +03:00
Marius SerbanandSteven Deutsch 4156260d93 allow dynamic avatar size per message size calculator (#898)
* allow dynamic calculation of avatar size

instead of having the same avatar size per size calculator, allow a subclass to override it so it can provide multiple avatar sizes depending on the message

* make sizing functions overridable by subclasses
2018-10-16 15:58:22 -05:00
Wu ZhongandGitHub aa734da840 Merge pull request #905 from talanov/development
Fix: Allow required initializator methods @ Views.
2018-10-14 23:04:39 +08:00
stanislav 648609d114 Fix: Allow required init coder @ MessageLabel, MessagesCollection, PlayButton Views, MessageContent, MessageCollectionView Cells, MessagesCollectionViewFlow Layout. 2018-10-14 17:45:57 +03:00
Nathan Tannar 197ec8b0d5 Final tweak to layout 2018-10-13 11:30:43 -07:00
Nathan Tannar 2e6de00785 Horizontal Padding only for accessoryView 2018-10-11 22:21:16 -07:00
Nathan Tannar 78c48fbf2d Merge remote-tracking branch 'origin/development' into accessoryview-updates 2018-10-11 21:32:02 -07:00
Nathan TannarandGitHub fa08526d09 Merge pull request #889 from monzo/bugfix/messagelabel-autolayout
fix intrinsic content size for MessageLabel
2018-10-05 12:18:56 -07:00
Julien K bc70b5bccc [Accessoryview] Fix 2018-10-04 16:43:56 +02:00
Marius Serban 6a2eef77a1 fix intrinsic content size for MessageLabel 2018-10-02 16:58:25 +01:00
Pavel Anokhov 2aa9573c58 Better method names 2018-10-02 12:19:47 +03:00
Nathan Tannar 9a2affcd6f Update to Swift 4.2 2018-09-29 11:45:50 -07:00
Pavel Anokhov 485b4602af swiftlint 2018-09-27 14:32:47 +03:00
Nathan Tannar 406f700109 Minor edits 2018-09-25 23:04:15 -07:00
Nathan TannarandSteven Deutsch 230e067009 Integrate MessageInputBar as a dependency (#732)
* Remove MessageInputBar files and change build settings

* Conditional imports to allow for builds without MessageInputBar

* Update Cardfile

* Specify Version in Cartfile for MessageInputBar

* Remove conditional imports in favor of Carthage for local development

* Additional `import MessageInputBar`

* Remove `MessageInputBar` from Cartfile.private

* Bump MessageInputBar version

* Add Cartfile

* Tweak build settings

* Specify import of MessageInputBar for Carthage
2018-09-17 12:22:21 -05:00
Steven DeutschandGitHub 2d1fe72c7c Merge pull request #856 from p-petrenko/bugfix/issue-829-dev
Fix scrollsToBottomOnKeybordBeginsEditing typo (development branch)
2018-09-15 21:51:19 -05:00
Steven DeutschandGitHub 04c2369d32 Merge pull request #832 from maxxx777/enhancement/init-reusable-view-with-coder
Enhancement/init reusable view with coder
2018-09-15 18:23:20 -05:00
Maxim Tsvetkov ae68e19c3f Rename convenience method to register Reusable View from nib 2018-09-15 22:44:10 +02:00
Polina Petrenko 3bfeccd080 Fix a typo in scrollsToBottomOnKeybordBeginsEditing 2018-09-11 23:10:20 +03:00
Pavel Anokhov fe0a000fc5 MessagesDataSource & MessagesLayoutDelegate methods for MessageType.custom handling. 2018-09-08 11:16:42 +03:00
Nathan Tannar a3c7a2f062 Add delegate and adjust layout 2018-08-31 11:04:42 -07:00
Maxim Tsvetkov 6a81f5c7b2 Add convenience method to register Reusable View from nib 2018-08-31 00:29:16 +02:00
Maxim Tsvetkov a009e72be6 Add init with coder for MessageReusableView 2018-08-31 00:22:59 +02:00
Steven Deutsch 1be76220a5 Fix CHANGELOG 2018-08-15 10:50:50 -05:00
James Nicholson e63d9a5337 Add support for embedded NSLinks for .url DetectorType 2018-08-07 17:22:59 +01:00
Steven DeutschandGitHub f8894874cc Merge pull request #787 from andreyvit/keyboard-inset-fix-to-rule-em-all
Adjust contentInset for the keyboard frame properly
2018-08-07 09:33:05 -05:00
zhongwuzw 540f203f6a Fix insets calculation when present and dismiss vc && remove precision when compare double 2018-08-07 14:44:27 +08:00
Cory ImdiekeandGitHub 16761a01a5 Double the font size of emoji messages
Modifies the emoji size calculator to set a new font, which has a size that is double the size of the default font.
2018-08-02 15:34:52 -05:00
Nathan Tannar d9f8856d63 Add back parseForAttachedImages 2018-08-01 12:24:52 -07:00
Nathan Tannar 34dcda013a Fix #569 and #789 2018-08-01 11:55:21 -07:00
Andrey Tarantsov 8f7c4077c0 Fix: make extraBottomInset work when set before showing 2018-08-01 13:27:41 +03:00
Andrey Tarantsov a0b0749231 Introduce extraBottomInset property 2018-08-01 13:14:41 +03:00
Andrey Tarantsov 79b1ff02cd Rename computeXxx to requiredXxx 2018-08-01 13:14:21 +03:00
Andrey Tarantsov 2ca89ec9cd Better document the rationale behind keyboard code 2018-08-01 12:57:10 +03:00
Andrey Tarantsov b49a0e0827 A tiny optimisation in keyboard handling 2018-08-01 12:22:21 +03:00
Andrey Tarantsov 39d4b6c032 Add a link to WWDC video about keyboard insets 2018-08-01 10:55:18 +03:00
Andrey Tarantsov 9eed4d8182 Adjust contentInset for the keyboard frame properly
This change provides better handling of keyboard frames. It copes with different values of UIViewController.edgesForExtendedLayout, UIScrollView.contentInsetAdjumentBehavior, view controller containment scenarios and undocked keyboards, and uses cleaner code.

Improvements and fixes in this change:

1. Translates keyboard frame from screen coordinates into view controller coordinates. They aren’t the same thing when containment is involved, or edgesForExtendedLayout does not include .top.

2. Avoids special casing any iPhone models and avoids dealing with safeAreaInsets manually. In iOS 11, UIScrollView may behave differently depending on contentInsetAdjumentBehavior, and the old code incorrectly assumed that the mode is .always (while it is in fact is .automatic) and that no extra safe area insets have been introduced at the bottom edge. Best part, we don’t have to deal with any of this at all, we can offload the logic to UIScrollView itself by looking at the difference between adjustedContentInset and contentInset.

3. Handles view controller containment and undocked keyboards by taking into account an intersection of the scroll view frame and the keyboard’s frame. I think Apple demoes this in one of the WWDC videos, but I couldn’t find which one (or if I’m misremembering). Regardless, this technique makes sure we compute and use a sensible number.

There’s also a couple of extra renames that make the intention of the modified code clearer.
2018-07-30 16:47:28 +03:00
zhongwuzw ab59a6d67b Make initializer of CellSizeCalculator open 2018-07-16 11:13:03 +08:00
hyouuuandGitHub ee08f3c88f Merge pull request #1 from MessageKit/development
Merge from upstream
2018-06-26 19:07:41 -07:00
Steven Deutsch ca117642b0 Relax protocol requirements for get/set 2018-06-13 18:06:25 -05:00
Wu ZhongandGitHub 528ed1aae6 Fixed MessageContentCell's subviews frame when size equal to .zero (#716)
* Fixed MessageContentCell's subviews frame when size equal to .zero

* Remove .zero check

* Fix test failure
2018-06-07 11:45:32 +08:00
Shawn Gong 2aa83ee984 Revert "keyboard frame done more correctly"
This reverts commit 081ca7ab1e.
2018-06-05 13:23:51 -07:00
Shawn Gong 081ca7ab1e keyboard frame done more correctly 2018-06-04 23:26:07 -07:00
Shawn Gong 4dabb02d2e Fix broken test (not related to this PR), and formatting 2018-06-04 16:55:31 -07:00
Shawn Gong 9c3032d8f7 Don’t ignore size calculation on zero size, and consider accessoryView height 2018-06-02 22:15:19 -07:00
Shawn Gong 7fde2fdc26 mimic avatar 2018-06-02 19:11:19 -07:00
Shawn Gong 3554e3fd24 Fix configCell stub cell type 2018-06-02 14:27:51 -07:00