41 Commits
Author SHA1 Message Date
CocoaBob 0be65a1f82 Fix timestamp label layout when not in fullscreen 2024-07-30 18:51:40 -04:00
Martin PúčikandJakub Kaspar bff35fda61 Added Swiftlint and Swiftformat plugins (#1729)
* build: Swiftlint plugin

* build: Swiftformat plugin

* build: Swiftformat plugin

* build: Swiftformat bash command

* style: Swiftformat rules

* style: Swiftformat applied to codebase

* style: Ignore Tests for Swiftlint

* Update bundler

* Update changelog and migration guide

* style: Ignore Example for Swiftlint

* chore: Changelog

* Update Xcode version for ci_pr_tests.yml

* Update ci_pr_framework.yml

* Update ci_pr_example.yml

* chore: Changelog

Co-authored-by: Jakub Kaspar <kaspikk@gmail.com>
2022-07-25 08:46:14 +00:00
Martin Púčik c2cf1a27e8 Added new methods in MessagesLayoutDelegate for adjusting alignment of message top and bottom labels (#1671) 2022-02-08 09:03:30 +01:00
Kurt Schaefer c5cdd11c59 Make messageTimestampLabel layout out relative to the messageContainerView so its vertical position tracks much better with the content of the message. 2021-03-16 16:48:28 -07:00
amir pirzad 0b42dfd75d fix timestamp label origin 2020-11-19 12:00:10 +03:30
amir pirzad f08cdad1f4 Fix some issues 2020-09-02 22:28:24 +04:30
amir pirzad be2eea0b2d Fix center label 2020-08-30 18:24:38 +04:30
amir pirzad ad28df1486 Use property 2020-08-30 18:20:32 +04:30
amir pirzad d4f0defa1c Use system color 2020-08-30 18:14:38 +04:30
amir pirzad c0a659daa3 Change to better check 2020-08-30 02:14:47 +04:30
amir pirzad 72c4c2140e Change text color for dark mode 2020-08-30 01:48:43 +04:30
amir pirzad 404f3ad332 Add boolean for enable/disable display time 2020-08-28 17:21:00 +04:30
amir pirzad 216d26baec Add message time label 2020-08-28 16:27:50 +04:30
Martin Púčik 81395b6575 Swift Package Manager support without RxSwift dependency (#1341)
* feat: SPM support

Using InputAccessoryView dependency without Rx

* feat: SPM support

Add missing imports

* feat: Swift Package Manager support

Added Package description with Assets support for Swift 5.3

* feat: Swift Package Manager support

Remove .swiftpm temp files

* feat: Swift Package Manager support

Ignore .swiftpm temp files

* feat: Swift Package Manager support

Remove Package.resolved

* feat: Swift Package Manager support

Ignore Package.resolved

* feat: Swift Package Manager support

Assets in framework project

* feat: Swift Package Manager support

Fix tests

* feat: Swift Package Manager support

Fix tests

* feat: Swift Package Manager support

Fix tests

* feat: Swift Package Manager support

Try Bundle.module to get MessageKit bundle

* feat: Swift Package Manager support

SPM condition in bundle

* feat: Swift Package Manager support

Remove previous Swift 5.2 version Package.swift

* feat: Swift Package Manager support

Update Readme with SPM installation
2020-06-30 17:24:07 +02:00
Mark Descalzo 003ab9c0ce Added missing textAlignment and textInsets assignments to layoutcellTopLabel method. 2019-06-27 09:58:08 -06:00
subdiox 7936d1ca43 fix conflict on merge 2019-02-27 09:39:36 +09:00
Nathan Tannar 2f1c0e53ce Bump copyright year 2019-02-21 20:53:23 -08:00
subdiox 31db3f9983 added AccessoryViewPosition parameter 2019-02-18 22:35:42 +09:00
Nathan Tannar d5b93a6562 Add Leading/Trailing padding to AvatarPosition (#944)
* Rework of avatar padding

* Use avatarLeadingTrailingPadding

* Undo edit in example

* Include changelog
2018-12-20 12:16:08 -06:00
Kristian Pennacchia db818fd452 Added a didTapBackground(in:) method to MessageCellDelegate. 👻 (#922)
* Added a `didTapBackground(in:)` method to MessageCellDelegate.

Allows apps to detect when the user has tapped on the background of a cell, rather than its content.

* Updated the changelog.
2018-12-03 09:12:00 -06:00
Nathan Tannar 0194cf7f80 Move handleTapGesture logic to MessageCollectionViewCell (#950)
* Move handleTapGesture func base class

* Add Changelog Entry

* Update CHANGELOG.md
2018-12-01 20:55:30 -06:00
Maxim Tsvetkov 32ecab3066 Enhancement/add another bottom label to the cell (#920)
* Rename cell bottom label stuff which actually conforms to message bottom label stuff

* Add cell bottom label methods for flow layout, data source and delegates

* Add vars for cell bottom label alignment and size

* Add cell bottom label into message content cell and set layout for label

* Set attributes for cell bottom label
Add cell bottom label attributes into calculation of cell content height

* Update example project to display cell bottom label

* Set avatar position to messageBottom in example project to display avatar with cell bottom label more pleasant  (cosmetic change)

* Revert "Set avatar position to messageBottom in example project to display avatar with cell bottom label more pleasant  (cosmetic change)"

This reverts commit d8d215518a.

* Fix comment to capitalize word

* Add cell bottom label after message bottom label in message content cell

* Update changelog

* Calculate Y position of cell bottom label as max Y position of message bottom label

* Move layout calculation of cell bottom label after layout calculation of message bottom label (because layout calculation of cell bottom label depends on layout calculation of message bottom label  now)

* Update breaking changes in changelog
2018-11-23 14:27:17 -06:00
Wu Zhong aa734da840 Merge pull request #905 from talanov/development
Fix: Allow required initializator methods @ Views.
2018-10-14 23:04:39 +08:00
stanislav 648609d114 Fix: Allow required init coder @ MessageLabel, MessagesCollection, PlayButton Views, MessageContent, MessageCollectionView Cells, MessagesCollectionViewFlow Layout. 2018-10-14 17:45:57 +03:00
Nathan Tannar 2e6de00785 Horizontal Padding only for accessoryView 2018-10-11 22:21:16 -07:00
Julien K bc70b5bccc [Accessoryview] Fix 2018-10-04 16:43:56 +02:00
Nathan Tannar 406f700109 Minor edits 2018-09-25 23:04:15 -07:00
Nathan Tannar a3c7a2f062 Add delegate and adjust layout 2018-08-31 11:04:42 -07:00
Shawn Gong 4dabb02d2e Fix broken test (not related to this PR), and formatting 2018-06-04 16:55:31 -07:00
Shawn Gong 9c3032d8f7 Don’t ignore size calculation on zero size, and consider accessoryView height 2018-06-02 22:15:19 -07:00
Shawn Gong 7fde2fdc26 mimic avatar 2018-06-02 19:11:19 -07:00
Shawn Gong b36924e3d2 consider accessoryViewPadding vertical attributes 2018-06-02 14:18:34 -07:00
Shawn Gong 9c23282d07 Add customizable accessoryView besides messageContainer 2018-06-02 02:10:51 -07: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
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
Steven Deutsch 9b8f0ba915 Remove CollectionViewReusable protocol 2018-04-03 13:24:43 -05:00
Steven Deutsch 1abcf97576 Add documentation for cells 2018-03-30 11:18:11 -05:00
Steven Deutsch 82dcf562d5 Refactor cell inheritance hierarchy 2018-03-27 02:37:53 -05:00