Commit Graph

495 Commits

Author SHA1 Message Date
Steven Deutsch c3bb03bd02 Add InsetLabel class 2018-03-24 03:52:35 -05:00
Steven Deutsch 4f2fd52465 Stop sizing cell labels to fit text 2018-03-24 03:52:35 -05:00
Steven Deutsch 86f9372d44 Add size calculators 2018-03-24 03:52:35 -05:00
Steven Deutsch 601a35007a Remove MessageIntermediateLayoutAttributes 2018-03-24 03:52:35 -05:00
Steven Deutsch 4e7b1b4eed Make CellSizeCalculator a protocol 2018-03-24 03:52:35 -05:00
Steven Deutsch 599f9afc27 Remove unused String extension 2018-03-24 03:52:35 -05:00
Steven Deutsch f589debbd9 Fix example app 2018-03-24 03:52:35 -05:00
Steven Deutsch d342bc4b56 Add LocationItem protocol 2018-03-24 03:52:35 -05:00
Steven Deutsch 5707a3441f Add MediaItem protocol 2018-03-24 03:52:35 -05:00
Steven Deutsch 1432c02278 Handle layout logic using CellSizeCalculator 2018-03-24 03:52:35 -05:00
Steven Deutsch 3c3b0a052f Add back shouldCacheAttributes 2018-03-24 03:52:35 -05:00
Steven Deutsch 75807db05b Gardening and open a few methods 2018-03-24 03:52:35 -05:00
Steven Deutsch 3af73b0939 Clean up some cache edge cases 2018-03-24 03:52:35 -05:00
Steven Deutsch 9181cd8db4 Make itemHeight lazy on intermediate attributes 2018-03-24 03:52:35 -05:00
Steven Deutsch 7a30b63661 Handle MessageData.custom caching 2018-03-24 03:52:35 -05:00
Steven Deutsch 212473c26f Create MessageCellLayout objects 2018-03-24 03:52:35 -05:00
Steven Deutsch 1d8eedf65b Remove MessageCellLayoutContext 2018-03-24 03:52:35 -05:00
Steven Deutsch 74946712d3 Revert access control to internal until otherwise 2018-03-24 03:52:35 -05:00
Steven Deutsch 0cc21797a0 Cache calculated text size 2018-03-24 03:52:35 -05:00
Steven Deutsch a0264952c5 Remove cached layout attributes and cache text size 2018-03-24 03:52:35 -05:00
Steven Deutsch 30e6b105c7 Set label positions as properties of layout object 2018-03-24 03:52:35 -05:00
Steven Deutsch dd6787d359 Set avatarposition as property on layout object 2018-03-24 03:52:35 -05:00
Steven Deutsch bf3930bd14 Set message padding through property on layout object 2018-03-24 03:52:35 -05:00
Steven Deutsch e2ede6fe5f Set avatar size through properties on layout object 2018-03-24 03:52:35 -05:00
Steven Deutsch f12347f485 Remove old deprecations 2018-03-24 03:52:35 -05:00
Steven Deutsch 7a1209ecbe Remove open methods from extensions 2018-03-24 03:52:35 -05:00
Alexander Momotiuk a77539288d Fix SwiftLint warnings #554 issue 2018-03-20 11:31:50 +02:00
Alexander Momotiuk e1049c7c39 Revert "Fixed SwiftLint warnings #554 Issue"
This reverts commit e30a340951.
2018-03-20 11:28:35 +02:00
Alexander Momotiuk 5eff75fd21 Merge branch 'development' into issue_554 2018-03-19 00:45:47 +02:00
Steven Deutsch c3a2bef1c9 Merge branch 'master' of https://github.com/MessageKit/MessageKit into development 2018-03-18 16:51:09 -05:00
Alexander Momotiuk e30a340951 Fixed SwiftLint warnings #554 Issue 2018-03-18 17:27:16 +02:00
Lio be26cd1165 Solves issue #559 ( https://github.com/MessageKit/MessageKit/issues/559 ) 2018-03-16 00:46:46 +03:00
Javier Cancio ab35614904 Solves issue #546 ( https://github.com/MessageKit/MessageKit/issues/546 ) 2018-03-05 23:55:01 +01:00
Steven Deutsch e00a8f4ac3 Merge pull request #520 from nosarj/enhancement/transitInfoDetection
Enhancement/transit info detection
2018-03-04 06:54:00 -06:00
Yishai 49a1904bf5 TransifInformation - Changed address back to addressComponents 2018-03-04 11:09:59 +00:00
Steven Deutsch da5479e318 Merge pull request #530 from clayellis/feature/auto-update-send
Add boolean flag to disable auto updating send button enabled state
2018-02-23 23:25:25 -06:00
zhongwuzw 5812f05656 fix bubble outline border color 2018-02-24 09:07:52 +08:00
Steven Deutsch 8c1f620de1 Merge branch 'master' into feature/auto-update-send 2018-02-23 01:44:57 -06:00
Clay Ellis edc71e2f91 Rename shouldAutoUpdateSendButtonEnabledStateOnTextDidChange > shouldManageSendButtonEnabledState and update documentation comment. 2018-02-21 22:32:27 -07:00
Steven Deutsch 880cf8c67d Move delegate methods to allow override 2018-02-21 06:49:46 -06:00
Wu Zhong fe376fd258 Fix wrong bubble image cache (#531)
* Fix wrong bubble image cache

* refactor code

* remove unnecessary code
2018-02-21 11:50:21 +08:00
Clay Ellis 8bb411de60 Add boolean flag to disabled auto updating send button enabled state on text did change 2018-02-20 08:54:53 -07:00
Yishai 516f8e4152 TransitInformation - Updated handleTransitInfo method name and updated change log 2018-02-15 13:16:15 +00:00
Roodyn, Yishai (UK - London) c54b1c9a37 TransitInfoDetection - Added transitInfoDetection to message Label 2018-02-14 16:34:58 +00:00
Nick Donaldson 4a1fc40714 Test bubble image equality after cache clears
Change MessageStyle.bubbleImageCache access level to internal
and extend unit test to clear cache and check for inequality
after an image is requested again
2018-02-12 09:37:12 -08:00
Nick Donaldson ef707c8a53 Add NSCache for message bubble images
Cache stretchable bubble image data in memory using NSCache.
UIImage(contentsOfFile:) does _not_ cache the resulting image
so it needs to be handled explicitly, and there is no need to
reload the image from disk for every message.
2018-02-09 17:20:00 -05:00
Steven Deutsch 1f563d3553 Add comment for .custom(Any?) 2018-02-02 18:59:17 -06:00
Steven Deutsch 6c388c0fbf Make .custom assoc value optional 2018-02-01 02:15:22 -06:00
Steven Deutsch b38cde44ef Add .custom(Any) case to MessageData 2018-01-31 01:48:47 -06:00
Steven Deutsch b4051be86b Gardening + add in source docs 2018-01-31 01:05:33 -06:00