Commit Graph

552 Commits

Author SHA1 Message Date
Shawn Gong 9c23282d07 Add customizable accessoryView besides messageContainer 2018-06-02 02:10:51 -07:00
Steven Deutsch 95f3921986 Merge branch 'development' into fix-bottom-inset 2018-06-01 14:59:54 -05:00
zhongwuzw d2fee1851f Fixed MessagesCollectionView's bottom inset when hardware keyboard is connected 2018-05-31 16:34:45 +08:00
zhongwuzw 74bb329c66 Make LabelAlignment initializer public 2018-05-29 22:09:59 +08:00
zhongwuzw 386ab8027f Change helper method from open to public 2018-05-23 10:36:40 +08:00
zhongwuzw 6d667fcaca Replace comments 2018-05-22 20:17:00 +08:00
zhongwuzw 4dbf9ccdda Added convenience method to set properties for all MessageSizeCalculators 2018-05-22 18:19:33 +08:00
Wu Zhong a9a68f6476 Fixed separator line height (#667)
* Fixed separator line height

* Update CHANGELOG.md
2018-05-01 00:30:55 +08:00
Steven Deutsch 9b2e785cdc Merge branch 'master' of https://github.com/MessageKit/MessageKit into development 2018-04-29 13:12:27 -05:00
Steven Deutsch a6a5908276 Revert .bottom change and remove arg 2018-04-26 03:22:53 -05:00
Steven Deutsch 3786989988 Add CHANGELOG entry 2018-04-26 03:11:45 -05:00
Steven Deutsch a6473c673e Rename cellBottomLabel 2018-04-26 02:51:41 -05:00
Austin Wright 95de21cbeb https://github.com/MessageKit/MessageKit/issues/663
- Removed textOffset CGPoint
- Adjusted touch location offset calculation to use textInsets .left/.top directly
2018-04-25 21:20:59 -04:00
Steven Deutsch 02805c748a Fix cellContentHeight calculations 2018-04-20 03:40:37 -05:00
zhongwuzw edd79fb3ae Add cellTop/messageLabelTop/cellBottom case for avatar vertical position 2018-04-18 17:24:53 +08:00
zhongwuzw 56418d2c70 Add cellTopLabel and rename topLabel to messageTopLabel 2018-04-16 18:40:58 +08:00
zhongwuzw 39986f0458 Renamed MessageData to MessageKind 2018-04-16 11:57:50 +08:00
zhongwuzw 44e6e9848d Remove NSAttributedString height(considering) extention method 2018-04-14 12:30:02 +08:00
zhongwuzw 99bb911c03 Reduce the number of calculation for label size 2018-04-12 23:32:16 +08:00
Steven Deutsch 4422020347 Merge branch 'master' of https://github.com/MessageKit/MessageKit into development 2018-04-11 16:11:35 -05:00
Steven Deutsch c52d6e42fd Remove annoying flatMap 2018-04-11 15:12:06 -05:00
zhongwuzw 0740574b87 boundingRect would return wrong size in some fonts, so add usesFontLeading option to use font leading for calculating line heights. 2018-04-11 21:54:05 +08:00
Corey Walo b646060bc5 Updated access control from review 2018-04-07 18:23:43 -05:00
Corey Walo 1e206218c1 Merge remote-tracking branch 'upstream/refactor/move-open' into refactor/move-open
# Conflicts:
#	Sources/Views/Cells/TextMessageCell.swift
2018-04-06 16:27:06 -05:00
Corey Walo 1038b96d01 Update access control
These are necessary to create custom cells that rely on the existing layout mechanisms.
2018-04-06 16:15:52 -05:00
zhongwuzw ffa21fdb67 Fixed bubbleTailOutline of message bubble 2018-04-06 21:45:26 +08:00
zhongwuzw bdfb988590 Fixed font invalidation of attributedString in MessageLabel 2018-04-06 11:00:42 +08:00
zhongwuzw f202228c60 Add CHANGELOG 2018-04-06 10:43:11 +08:00
Corey Walo 6fcd2d6aa2 Only apply textColor for .text case of MessageData (#625)
* Only apply textColor for .text case of MessageData

* Update CHANGELOG

* Add name and PR #
2018-04-06 10:27:01 +08:00
Corey Walo f48cd56851 Only apply textColor for .text case of MessageData 2018-04-05 13:00:25 -05:00
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 Deutsch 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