Commit Graph

51 Commits

Author SHA1 Message Date
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 Sanchez eb84520fff Updates to Swift 2.2 2016-04-11 14:22:56 +01:00
Anton Schukin 9062c4cec0 Listening for photo library updates 2016-03-31 16:50:53 +01:00
Diego Sanchez 613074bdb9 Fixes leaking the view controller when keyboard is present 2016-03-30 20:04:22 +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
Viacheslav Radchenko e102878d88 Show placeholder cells in photo input if not enough photos 2016-03-24 19:00:14 +00:00
Anton Schukin 62fd1ed7cd Added default initialiser for public struct 2016-03-23 15:37:50 +00:00
Diego Sanchez f16bb098ae Fixes blink on iOS 8 when sending text messages 2016-03-23 11:30:59 +00:00
Diego Sánchez bd88319a9a Merge pull request #74 from Viacheslav-Radchenko/dev
Implement ChatInputItemProtocol directly, rather then through class extension
2016-03-22 18:23:14 +00:00
Viacheslav Radchenko f1f1f6465d Implement ChatInputItemProtocol directly, rather then through class extension 2016-03-22 17:21:40 +00:00
Anton Schukin 0e064424d8 Allow_to_customize_sizes_and_colors_of_photo_messages 2016-03-22 16:54:08 +00:00
Diego Sanchez c1b7cb7553 Adopts changes in appearance on ChattoApp. The default values in appearance don't work for any app (unlocalized texts) so it's better to remove the default value and make existing apps get a compiler error. 2016-03-21 23:53:58 +00:00
Diego Sanchez 4cca18783a Fixes swiftlint warnings 2016-03-21 20:55:56 +00:00
Diego Sanchez eaa4142e17 Fixes misalignment when revealing timestamps due to different sizes (3.00 am 17.37 pm) 2016-03-21 20:55:56 +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
Viacheslav Radchenko 0e35ad6ba9 Added block handlers 2016-03-17 15:17:49 +00:00
Viacheslav Radchenko a9b230fe50 Extend PhotosInputViewDeelgate with permission callbacks 2016-03-17 11:43:12 +00:00
Anton Schukin 4ae42064cf Make PhotoMessagePresenter.photoCellStyle property public 2016-03-16 10:41:05 +00:00
Anton Schukin c2b13923bc BaseMessagePresenter properties became public 2016-03-15 18:07:42 +00:00
Zhao Wang 91a4d2bf61 Expose a public initializer for BaseMessageCollectionViewCellLayoutConstants
Since the default one is internal for struct.
2016-03-14 11:23:32 -07:00
Anton Schukin 1ef01a7876 Presenters can responds on cell events directly and implement additional behaviour in addition to interaction handlers 2016-03-14 17:02:20 +00:00
Zhao Wang 1699199857 update self.dynamicType to static type to avoid potential issues of finding default images in NSBundle 2016-03-13 13:19:51 -07:00
Diego Sánchez 2733b83e8c Merge pull request #55 from zwang/feature-avatar
Adds support for user avatars
2016-03-12 11:37:51 +00:00
Zhao Wang c811ade011 avatar for messages update based on feedback
Also allow user to override layoutConstants in
BaseMessageCollectionViewCell and allow user to specify
VerticalAlignment of avatar: Top, Bottom or Center
2016-03-11 23:17:40 -08:00
Anton Schukin 239c36f33a Added default init method for PhotoMessageCollectionViewCellDefaultStyle 2016-03-10 15:55:53 +00:00
Zhao Wang 15dea4cfc6 Add comments about how to display avatar 2016-03-10 00:01:24 -08:00
Zhao Wang 139c56e793 Add avatar implementation and demo 2016-03-09 23:53:26 -08:00
Zhao Wang d3b3c8561a Also change the file name for typo 2016-03-08 23:18:43 -08:00
Zhao Wang 6e0d014571 Fix a class name typo
BaseMessageCollectionViewCellDefaultSyle  ->
BaseMessageCollectionViewCellDefaultStyle
2016-03-08 22:02:59 -08:00
Anton Schukin 8c8413432d Make PhotoMessagePresenter.photoCell public 2016-03-08 14:26:42 +00:00
Anton Schukin 30a9604ef8 Make several properties in PhotoMessagePresenterBuilder public 2016-03-08 14:11:23 +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
Barış Çamur c7d4fcfbd5 Make Subclassing BaseMessageCollectionViewCell Possible Outside of ChattoAdditions Module
-This commit exposes messageViewModel, createBubbleView() and init
functions of BaseMessageCollectionViewCell class to other modules by
changing their access modifiers to ‘public’.
-This also requires to change the access level of createBubbleView()
function of  TextMessageCollectionViewCell and
PhotoMessageCollectionViewCell to be made ‘public’
2016-02-26 17:20:14 +02:00
Diego Sanchez da05cb2a09 Relax MessageModelProtocol and MessageViewModelProtocol requirements.
MessageModelProtocol should not require setter for status property.
MessageViewModelProtocol should not require messageModel property.

Both are convenience shortcuts for DemoChatApp and should be removed since they are not used by ChattoAdditions framework.
2016-02-18 12:37:50 +00:00
Diego Sanchez 99e30d85d4 Makes PhotoMessageViewModelDefaultBuilder generic so it can build view models from different concrete models 2016-02-03 13:36:23 +00:00
Diego Sanchez a040604f05 Makes TextMessageViewModelDefaultBuilder generic so it can build view models from different concrete models 2016-02-03 13:36:23 +00:00
Diego Sanchez d46bdb214c Relaxes generic constraints so presenters can be reused with different models 2016-02-03 13:06:03 +00:00
Diego Sanchez e297a86bf2 Fixes autolayout warnings 2016-02-02 22:58:12 +00:00
Diego Sanchez fb1c3ad04a Renames BMACircle* -> Circle* 2016-02-02 17:19:44 +00:00
Diego Sanchez a0a071afa8 Fixes linter warnings and updates some rules. Also removes deprecated '++' and '--' 2016-01-27 22:04:32 +00:00
Zhao Wang 84052f3b8d Add "default" case for "switch" block to eliminate Xcode warnings
Xcode is complaining enumerations values not handled.
2015-12-11 22:37:00 -08:00