Commit Graph

14 Commits

Author SHA1 Message Date
Anton Schukin 5d9a0b8f00 Pods updated 2016-07-26 18:02:52 +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
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 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
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
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 Sanchez 613074bdb9 Fixes leaking the view controller when keyboard is present 2016-03-30 20:04:22 +01:00
Zhao Wang d3b3c8561a Also change the file name for typo 2016-03-08 23:18:43 -08:00
Diego Sanchez 4086d458e3 Allows a datasource to return different chatItem instances when it updates.
Previously, due to the mapping between chatItem instance and presenter, a new presenter would be created. This fixes:
1) That new presenter will have invalid itemVisibility property (would cause a crash when long pressing a text cell)
2) If a new chatItem instance is returned by the dataSource for a previous existing message, but the previous chatItem is leaked, then the presenter would leak too (and it might try to update its cell, as in downloading an image)

This introduces ChatItemCompanion, a structure which attaches a ChatItem with its presenter and decoration attributes. This solves 1) and 2). Still new instances of presenters will be created for new instances of chatItems --> Presenters should avoid keeping any state in its internal storage.
2016-02-08 17:55:23 +00:00
Diego Sanchez 1c1ae439dd Merge remote-tracking branch 'upstream/master' into dev 2016-02-02 17:37:23 +00:00
Diego Sanchez fb1c3ad04a Renames BMACircle* -> Circle* 2016-02-02 17:19:44 +00:00
Diego Sanchez a8933a3791 Renames ChatViewController -> BaseChatViewController 2016-02-01 14:57:06 +00:00
Diego Sanchez 2884160061 Chatto inception 2015-11-26 22:48:25 +00:00