Anton Schukin
43e1f675fb
ChatInputItemProtocol.selected and ChatInputItemProtocol.disabled properties became public
2016-07-27 10:01:47 +01:00
Anton Schukin
f0198d77ce
Use calculated properties instead of functions in default protocol implementation
2016-07-26 18:25:09 +01:00
Anton Schukin
946232bf21
Ignore tap if input item is disabled
2016-07-26 18:06:26 +01:00
Anton Schukin
5d9a0b8f00
Pods updated
2016-07-26 18:02:52 +01:00
Anton Schukin
15d2e1f817
Fixed tests compilation issue
2016-07-26 17:59:05 +01:00
Anton Schukin
c17a99014b
Move ChatInputItem selected and enabled properties to protocol extension
2016-07-26 17:55:42 +01:00
Anton Schukin
a8ba3531b7
tabView renamed to inputButton for consistency
2016-07-26 17:50:17 +01:00
Anton Schukin
3fa9853321
TabInputButton renamed to ChatInputButton for consistency
2016-07-26 17:34:57 +01:00
Diego Sánchez
d8a162cb0f
Xcode 8.0 b3 + swift 2.3 support ( #183 )
...
* Fixes compilation for Xcode 8.0(beta 3)/Swift 2.3
* Adds NSCameraUsageDescription and NSPhotoLibraryUsageDescription to avoid crash on iOS 10 beta
* Runs swiftlint autocorrect
2016-07-18 23:28:11 +01:00
Max Konovalov
1329c96a0e
Avatar improvements ( #176 )
...
* Add showsAvatar decoration attribute
* Add avatar tap handler
* Add avatar to photo message
* Fix tests
* Rename showsAvatar to canShowAvatar
2016-07-18 20:35:09 +01:00
Anton Schukin
e0e63e177a
Merge pull request #180 from badoo/Allow_customisation_of_timestamp_revealing_behaviour
...
Allow customisation of timestamp revealing behaviour
2016-07-13 10:18:52 +01:00
Anton Schukin
26a4a0e0c8
Allow customisation of timestamp revealing behaviour
2016-07-12 17:49:40 +01:00
Anton Schukin
7cb528d927
Merge pull request #173 from badoo/improve-responsiveness-of-camera
...
Improve responsiveness of camera
2016-07-12 15:31:27 +01:00
Anton Schukin
45730f1696
Merge branch 'dev' into improve-responsiveness-of-camera
2016-07-12 15:13:46 +01:00
Max Konovalov
7d410e5760
Make photo message cell style Colors initializer public ( #177 )
2016-07-08 00:04:34 +01:00
Diego Sánchez
359ebe1aa4
Merge branch 'dev' into improve-responsiveness-of-camera
2016-07-06 11:34:31 +01:00
Igor Kashkuta
6f0e82fb7d
Fix jolty transitions between input items. ( #174 )
2016-07-06 11:16:51 +01:00
Diego Sanchez
8f9ce5df4e
Improves responsiveness of camera when switching to/from full-screen camera view.
2016-07-05 23:14:22 +01:00
Diego Sánchez
e4315bf4e8
Makes source code compatible with Swift 2.3 ( #156 )
2016-07-04 19:07:41 +01:00
Igor Kashkuta
600da97e13
Revert "Preserve height of ChatInputItem if keyboard item was previously opened. ( #170 )" ( #172 )
...
This reverts commit b2fcf7b7fc .
2016-07-04 16:18:21 +01:00
Igor Kashkuta
b2fcf7b7fc
Preserve height of ChatInputItem if keyboard item was previously opened. ( #170 )
2016-06-30 20:30:36 +01:00
Diego Sánchez
61fe370e86
Makes queue status accessible out of the framework ( #169 )
2016-06-30 15:48:40 +01:00
Diego Sánchez
7a0f8d8e58
Improvements to photo input item: ( #168 )
...
- Just one capture session per input component.
- Avoids starting/stoping capture during collection reloads, which can make the live camera take longer to capture or even hang.
- Moves creation/destruction of capture session to the background: when opening/closing the input component many times it was resulting in capture start / stop blocking the main thread for some seconds on iOS 8
- Queues updates in the collection view: doing a reloadData right after reloadItemsAtIndexPaths (update video) results in the visible cells not being refreshed
2016-06-29 23:54:15 +01:00
Igor Kashkuta
25b32bb0cb
Add view parameter to userDidTapOnFailIcon() ( #167 )
...
* Add view parameter to userDidTapOnFailIcon() interaction handler method. Pass failed button view into it.
2016-06-28 15:20:20 +01:00
Diego Sánchez
37dd3bd562
Minor performance improvements for TextBubble ( #166 )
...
* Minor performance improvements:
- Avoids updating font and color in TextBubble if it's not needed: would make attributed text to update
- Avoids updating views in selected setter if value didn't change (setter is called by the collection view as part of dequeuing)
- Avoids creating dictionary of attributes all the time for date attributed string (for some reason this was appearing in profiling with some swift-to-objc conversions)
Uses enum as image key in text style for greater safety.
* Removes linter warnings
2016-06-27 23:03:32 +01:00
Anton Schukin
7d41490445
Fixed blocked-based AnyGenerator leak ( #165 )
2016-06-27 17:48:37 +01:00
Anton Schukin
ec126cdac9
Merge pull request #164 from badoo/leak_fix
...
Fixed tests for armv7 architecture
2016-06-25 14:41:06 +01:00
Anton Schukin
8021e972b9
Fixed tests for armv7 architecture
2016-06-25 14:27:31 +01:00
Diego Sánchez
bc4c9d8a64
Fixes crash when deleting a emoji. ( #162 )
...
Issue related to Unicode and String vs NSString.
NSRange has length = 2 for the emoji while it represents a single character.
2016-06-23 15:21:21 +01:00
Diego Sánchez
29173b03b5
Fixes text sizing issue. ( #161 )
...
Setting UITextView.textColor after UITextView.text may result in a NSTextStorage string that doesn't match our size calculation routine.
2016-06-23 14:41:08 +01:00
Diego Sánchez
4ae006a81a
Fixes for fast-queueing ( #157 )
...
Fixes for fast-queueing
2016-06-22 12:37:40 +01:00
Diego Sánchez
8da10a8776
Fix carthage for dev branch ( #159 )
2016-06-22 12:22:55 +01:00
Diego Sánchez
5c3c84e6a6
Input bar customization enhancements ( #154 )
...
Adds more customizable options to the input bar
Bar with icons gets customizable height
Buttons get customizable intrinsic contentSize, so they can be bigger and easy to tap
Buttons get customizable images for any UIControlState
Send button gets customizable text colors for any UIControlState
2016-06-16 15:27:37 +01:00
Igor Kashkuta
33b2016638
Make default messages time formatter respect current locale. ( #155 )
2016-06-16 10:27:01 +01:00
Sergey Armodin
9538acf79d
Make HorizontalStackScrollView public to make possible creating subclass of ChatInputBar with own xib ( #153 )
...
* Merge remote-tracking branch 'badoo/master' into dev
Make HorizontalStackScrollView public to make possible creating
subclass of ChatInputBar with own xib
* override fix
2016-06-14 16:00:42 +01:00
Diego Sánchez
f442111937
Allows configuring a maximum number of characters for the input bar ( #152 )
2016-06-14 14:22:42 +01:00
Diego Sánchez
6fa34eea6d
Cancels current scrolling when animating to the bottom. Otherwise if the collection view is scrolling up and scrollToBottom is called, then it will scroll to the bottom and then continuing scrolling up ( #151 )
2016-06-14 14:12:04 +01:00
Igor Kashkuta
d4d2577959
Make updateQueue public so subclasses can control it. ( #150 )
...
* Make update queue of BaseChatViewController public
* Fix SwiftLint's warnings.
* Fix tests
2016-06-14 12:53:40 +01:00
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