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
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
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
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
Diego Sánchez
f442111937
Allows configuring a maximum number of characters for the input bar ( #152 )
2016-06-14 14:22:42 +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
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
Igor Kashkuta
9b4232bcb3
Rename isSendButtonEnabledForInputBar -> shouldEnableSendButton
2016-04-13 15:59:33 +01:00
Igor Kashkuta
3b449b352f
Make the name for closure property more clear
2016-04-13 15:51:29 +01:00
Igor Kashkuta
f62c619b80
Add ability to control Send button enabled state from external code.
2016-04-13 14:49:54 +01:00
Diego Sánchez
3ed7385258
Merge pull request #86 from badoo/master
...
Updates dev with master
2016-03-24 23:28:16 +00:00
Diego Sanchez
2c5b065d5c
Improvements for custom styling
...
- Allows reusing default styles by injecting parameters
- Insets and fonts for input component
2016-03-21 20:49:30 +00:00
Anton Schukin
e6ae451a32
ChatInputBarDelegate becomes public
2016-03-05 12:57:00 +00:00
Anton Schukin
e0b8dd89cd
Adopted ChatInputBar delegation
2016-03-05 12:54:40 +00:00
Anton Schukin
bd1fb5ada5
Implemented proper presenter
2016-03-05 12:39:21 +00:00
Diego Sanchez
e297a86bf2
Fixes autolayout warnings
2016-02-02 22:58:12 +00:00
Diego Sanchez
a0a071afa8
Fixes linter warnings and updates some rules. Also removes deprecated '++' and '--'
2016-01-27 22:04:32 +00:00
Diego Sanchez
2884160061
Chatto inception
2015-11-26 22:48:25 +00:00