Commit Graph

203 Commits

Author SHA1 Message Date
Diego Sánchez ee45cdee43 Adds some configuration to tweak how updates are performed: (#145)
- Coalesce updates: when receiving updates from the datasource while an update is being performed, only the last one will be actually executed.
 - Fast updates: allows next performBatchUpdate before completion of the previous one
 - Tracks visible views: keeps track of cells on-screen instead of relying of indexPathsForVisibleItems and indexPathForCell, which are unreliable on fast updates.
2016-06-01 16:33:29 +01:00
Diego Sánchez d87fe40c90 Some optimizations for TextBubbleView (#144) 2016-06-01 13:43:37 +01:00
Diego Sánchez 592c8ee142 Allows the decorator to override item ids (#143) 2016-06-01 12:30:53 +01:00
Diego Sánchez 6e55f5e052 Make border images optional in BaseMessageCollectionViewCellDefaultStyle (#139) 2016-05-27 16:54:20 +01:00
Diego Sánchez 30da76b68a Ends editing when user taps on the chat background (#138) 2016-05-26 15:14:06 +01:00
Diego Sánchez 62757faa54 Fixes cell being configured with the wrong image coming from PHImageManager (#137) 2016-05-25 18:32:16 +01:00
Anton Schukin 548ca5d2cc Merge pull request #136 from badoo/Make_some_properties_public
Make some properties public
2016-05-25 13:14:33 +01:00
Anton Schukin 6c469185d5 Make some properties public 2016-05-25 11:30:05 +01:00
Anton Schukin a14b1a7f85 Merge pull request #135 from badoo/Allow_to_specify_margins_for_revealable_timestamps
Allow to specify margins for revealable timestamps
2016-05-20 14:12:15 +01:00
Anton Schukin 12c79b919a Allow to specify margins for revealable timestamps 2016-05-18 14:59:42 +01:00
Cody Rayment 9f551bfcb4 Added support for embedding in UITabBarController (#132)
* Respects bottom layout guide
* Demo for ChattoApp with tab bar controller
2016-05-16 18:33:18 +01:00
Diego Sánchez d6a7d185c8 Fixes bubbles animating when keyboard is dismissed interactively (#134)
* Fixes bubbles animating when keyboard is dismissed interactively
2016-05-16 11:49:46 +01:00
Diego Sánchez 3b62da46a3 Text bubble fixes (#127)
* Fixes diacritic marks being clipped.

This changes how text insetting is performed. By using non-zero textInsets, UITextView size is now bigger and diacritic marks can be seen.

* Fixes size of text not matching UITextView.sizeThatFits(_:) for some strings - which was leading to incorrect size of text bubbles -
2016-05-12 15:54:56 +01:00
Diego Sánchez 09a5951ca9 Makes BaseChatViewController.deinit safe (#131) 2016-05-12 11:45:14 +01:00
Anton Schukin 92d6c0cc40 Merge pull request #130 from badoo/Allow_to_subclass_PhotoBubbleView
Allow to subclass photo bubble view
2016-05-11 11:12:13 +01:00
Anton Schukin d84a9805a4 Allow PhotoBubbleView to be subclassed 2016-05-11 10:49:07 +01:00
Anton Schukin b4308dcd7b Make BaseMessagePresenter.decorationAttributes public 2016-05-11 10:43:48 +01:00
Igor Kashkuta 1293cb92c5 Add Igor Kashkuta to AUTHORS (#128) 2016-05-09 16:37:18 +01:00
Anton Schukin 2a8c76370d Merge pull request #125 from AntonPalich/Add_ability_to_react_on_different_states_of_long_press_gesture_recognizer
Added ability to react on different states of UILongPressGestureRecog…
2016-05-06 13:46:18 +01:00
Anton Schukin c11374ae3c Added ability to react on different states of UILongPressGestureRecognizer 2016-05-06 13:30:32 +01:00
Anton Schukin c806394571 Merge pull request #124 from ikashkuta/dev
Add ability to focus on chat input item programmatically.
2016-05-05 19:21:48 +01:00
Igor Kashkuta 31a441aebc Preserve old behavior with call to -shouldFocusOnItem function 2016-05-05 19:09:05 +01:00
Igor Kashkuta 4dcf4a4f4b Remove unused parameter 2016-05-05 19:03:12 +01:00
Igor Kashkuta 2069b367a4 Add ability to focus on chat input item programmatically. 2016-05-05 18:57:50 +01:00
Anton Schukin 9b78635775 Merge pull request #123 from AntonPalich/Fix_text_size_calculation_v2
Fixed issue with text size calculation v2
2016-05-05 16:41:26 +01:00
Anton Schukin 136473d1b0 Fixed issue with text size calculation v2 2016-05-05 16:37:51 +01:00
Anton Schukin 47f6692eca Revert "Merge pull request #122 from AntonPalich/Fix_text_size_calculation"
This reverts commit 06655cdd77, reversing
changes made to acc9900c98.
2016-05-05 16:33:01 +01:00
Anton Schukin 06655cdd77 Merge pull request #122 from AntonPalich/Fix_text_size_calculation
Fixed text size calculation
2016-05-05 15:39:38 +01:00
Anton Schukin 5a9c096e02 Fixed text size calculation 2016-05-05 14:47:50 +01:00
Diego Sánchez acc9900c98 Merge pull request #115 from diegosanchezr/fixes-keyboard-issues
Fixes some keyboard issues
2016-04-20 19:18:43 +01:00
Diego Sanchez f3e3556a20 Fixes some keyboard issues 2016-04-20 11:51:49 +01:00
Diego Sánchez c2c2d307c7 Merge pull request #114 from diegosanchezr/accessory-view-revealer-enhacements
Enhancements for accessory view revealer
2016-04-19 13:11:45 +01:00
Diego Sanchez d08fc82135 Enhancements for accessory view revealer. Allows disabling it and custom transform to gesture displacement for "resistance" effect 2016-04-19 12:57:47 +01:00
Diego Sánchez 46b4a6a730 Merge pull request #110 from diegosanchezr/fixes-contentoffset-adjustment
Fixes content offset adjustment
2016-04-19 12:29:49 +01:00
Diego Sanchez 2e7d439143 Fixes content offset calculation when showing the keyboard in a conversation with very few messages 2016-04-18 17:10:50 +01:00
Diego Sánchez 7e0e020f39 Merge pull request #109 from diegosanchezr/fixes-assert-layout-ios-8
Fixes assert being hit when entering a conversation on iOS 8
2016-04-18 11:42:33 +01:00
Diego Sanchez fb98769002 Fixes assert being hit when entering a conversation on iOS 8 2016-04-17 23:38:18 +01:00
Anton Schukin a95e971055 Merge pull request #108 from AntonPalich/Fix_iOS_8_Crash
Fixed iOS 8 crash
2016-04-15 14:35:59 +01:00
Anton Schukin 2e4812a5e7 Fixed iOS 8 crash 2016-04-15 14:26:36 +01:00
Diego Sánchez 9bccd77180 Merge pull request #105 from ikashkuta/dev
Add an ability to specify the behaviour of ChatInputBar when user taps on it
2016-04-14 18:56:08 +01:00
Igor Kashkuta 3319ba9036 Aand add one more simplification with default value for optionals 2016-04-14 18:14:41 +01:00
Igor Kashkuta a5dbc88c68 Simplify code with optionals. 2016-04-14 18:07:54 +01:00
Igor Kashkuta e1b88baeac Use ?? instead of complex if statement. 2016-04-14 17:50:09 +01:00
Igor Kashkuta 67387f1d9d Add ability to disallow focus on InputItem for ChatInputBar. 2016-04-14 17:32:59 +01:00
Igor Kashkuta 4d4fbed64d Add ability to disallow the beginning of text editing for ChatInputBar. 2016-04-14 17:32:41 +01:00
Diego Sánchez 9c04a00048 Merge pull request #103 from ikashkuta/dev
Add ability to control Send button enabled state from external code.
2016-04-13 16:08:20 +01:00
Igor Kashkuta 9b4232bcb3 Rename isSendButtonEnabledForInputBar -> shouldEnableSendButton 2016-04-13 15:59:33 +01:00
Diego Sánchez 9c5700c73e Merge pull request #104 from diegosanchezr/fix-uimenucontroller-dismiss
Fixes UIMenuController not dismissing properly
2016-04-13 15:54:28 +01:00
Igor Kashkuta 3b449b352f Make the name for closure property more clear 2016-04-13 15:51:29 +01:00
Diego Sanchez 6e8229ff09 Fixes UIMenuController not being dismissed when touching outside a bubble.
1. Open keyboard
2. Dismiss keyboard
3. Long press on bubble -> Menu appears
4. Tap outside the bubble -> bug: menu doesn't dismiss
2016-04-13 15:27:01 +01:00