Commit Graph

9 Commits

Author SHA1 Message Date
Diego Sánchez d1b01327d1 Swift 3 migration (#220)
* Runs the Swift 3 migrator in ChattoApp.

Affects ChattoApp, ChattoAppTests, Chatto and ChattoAdditions. Does not migrate ChattoTests or ChattoAdditionsTests

* Configures Chatto And ChattoAdditions projects to use Swift 3

* Updates .travis.yml to use Xcode 8 and iPhone 7

* Uses flatMap instead of filter and force cast

* Fixes createCollectionViewLayout not being a function

* Removes useless init overrides

* Fix for new implicit unwrapping optional non-propagation rule

* Removes useless casting

* Audits accessor levels in Observable

* Fixes UIControlState.Normal replaced by UIControlState()

* Favours private over fileprivate where possible

* Audits open/public access level

* Removes conditional if for Swift 2

* Removes label from simulateTapOnTextViewForDelegate

* Audits open/public access levels
2016-09-21 12:58:25 +01:00
Diego Sánchez a541e5b9f3 Makes MessageViewModelProtocol callbacks willBeShown and wasHidden optional (#190) 2016-08-01 21:09:47 +01:00
Max Konovalov 1ef46a0e35 Add updating logic to text message (#178)
* Add updating logic to text message

* Change Observable to class

* Fix avatar hiding

* Move willBeShown/wasHidden declarations to common protocol
2016-07-31 22:53:52 +01:00
Igor Kashkuta 33b2016638 Make default messages time formatter respect current locale. (#155) 2016-06-16 10:27:01 +01: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
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
Zhao Wang 139c56e793 Add avatar implementation and demo 2016-03-09 23:53:26 -08: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 2884160061 Chatto inception 2015-11-26 22:48:25 +00:00