Commit Graph
672 Commits
Author SHA1 Message Date
zhongwuzw 1ee84a6862 Fix font invalid for attributedString 2018-04-05 23:36:04 +08:00
Corey Walo 3dc6979a78 Move computed properties out of extension and add documentation 2018-04-03 15:16:06 -05:00
Corey Walo 63784c7010 Make computed properties of MessagesCollectionViewFlowLayout public
This allows cellSizeCalculatorForItem to be overridden and still call super.
2018-04-03 14:59:06 -05:00
Steven Deutsch bb1ea1d67e Remove failing tests 2018-04-03 13:45:52 -05:00
Steven Deutsch 1dc97fc38f Remove shouldDisplayHeader method 2018-04-03 13:24:43 -05:00
Steven Deutsch 911387edc1 Refactor header/footer API to remove indexPath 2018-04-03 13:24:43 -05:00
Steven Deutsch 9b8f0ba915 Remove CollectionViewReusable protocol 2018-04-03 13:24:43 -05:00
Steven Deutsch 3697048cb3 Remove MessageHeaderView and MessageFooterView 2018-04-03 13:24:43 -05:00
zhongwuzw d2ce5877f9 Transform CellSizeCalculator from protocol to class 2018-03-31 16:03:35 +08:00
Steven Deutsch 1abcf97576 Add documentation for cells 2018-03-30 11:18:11 -05:00
Steven Deutsch 04bfb7c5d7 Document all protocols 2018-03-30 10:43:41 -05:00
zhongwuzw 9ce067ffdf make NSConstraintLayoutSet internal 2018-03-30 12:56:45 +08:00
zhongwuzw c82a7c0d1e update access control 2018-03-30 12:49:31 +08:00
zhongwuzw aaae67ec65 Make sizeCalculator lazy && fix access level 2018-03-30 10:09:46 +08:00
zhongwuzw 5971523b41 Support custom CellSizeCalculator not restrict to MessageSizeCalculator 2018-03-29 23:33:27 +08:00
zhongwuzw 87a0baa31b Add explicit access level && some comments 2018-03-29 23:13:08 +08:00
zhongwuzw 7ac9ede829 make calculator of layour open 2018-03-29 15:38:45 +08:00
Steven DeutschandWu Zhong 07c0e58597 Remove the limitation of 1 cell to 1 section (#601)
* Add numberOfSections delegate method

* Remove numberOfMessages(in) and add other two substitution methods

* Fix tests failure
2018-03-29 13:16:32 +08:00
Steven Deutsch 800396c13e Refactor reusable view inheritance hierarchy 2018-03-27 02:38:07 -05:00
Steven Deutsch 82dcf562d5 Refactor cell inheritance hierarchy 2018-03-27 02:37:53 -05:00
Steven DeutschandGitHub 8a914bbc37 Merge pull request #593 from MessageKit/fix/equality
Improve equality checking on layout attributes
2018-03-27 02:03:33 -05:00
Steven Deutsch 577e1bdc21 Improve equality checking on layout attributes 2018-03-27 01:52:31 -05:00
Steven Deutsch 17398a2cb2 Add hook to configure async media on cell 2018-03-27 01:28:14 -05:00
Steven Deutsch f70e1c82aa Remove deleted file 2018-03-27 01:11:26 -05:00
Steven Deutsch b9c626d405 Add CHANGELOG entry for #580 2018-03-24 03:52:35 -05:00
Steven Deutsch 66ed7a0817 Modify default behavior for insets and height 2018-03-24 03:52:35 -05:00
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