Messagekit: Bulk Edit(Select) Mode

Created on 9 Jan 2018  路  9Comments  路  Source: MessageKit/MessageKit

General Information

  • MessageKit Version:

  • iOS Version(s):

  • Swift Version:

  • Devices/Simulators:

  • Reproducible in ChatExample? (Yes/No):

What happened?

What did you expect to happen?

@SD10 Here I want to new feature (I don't know its already present or not)
Feature is Bulk Edit mode like select multiple messages like 'JSQMessagesViewController' bulk edit mode
https://github.com/jessesquires/JSQMessagesViewController/pull/1593

Actually i want this functionality for selected single/multiple messages for forward/delete
Thank you

feature request

Most helpful comment

@girishghoda Yes this is a feature request, it does not exist currently. I鈥檓 not sure when we鈥檒l support this

Sent with GitHawk

All 9 comments

Hey @BasThomas for now i want to achieve this functionality,if any alternative solution in Message kit?
Any suggestion appriciated
Thank you

@girishghoda Yes this is a feature request, it does not exist currently. I鈥檓 not sure when we鈥檒l support this

Sent with GitHawk

@BasThomas @SD10 I have hack(suggestion) for everyone if you block on this feature
Its for Only one message at time

1)Add method in MessageCellDelegate protocol
func didTapLongPressed(in cell: MessageCollectionViewCell)

2)Add Long pressed gesture in MessageCollectionViewCell

//Long press cellview
    func setupLongPressGestureRecognizers() {
        let longPressGesture:UILongPressGestureRecognizer = 
        UILongPressGestureRecognizer(target: self, action: #selector(handleLongPress))
        longPressGesture.minimumPressDuration = 1.0 // 1 second press
        //longPressGesture.delegate = self
        self.addGestureRecognizer(longPressGesture)
    }
/// Handle cell long press
@objc func handleLongPress(_ longPressGestureRecognizer: UILongPressGestureRecognizer) {

    if longPressGestureRecognizer.state == UIGestureRecognizerState.began {

        delegate?.didTapLongPressed(in: self)
    }
}

3)Implement method in your Chat view :
func didTapLongPressed(in cell: MessageCollectionViewCell) {
}
Its my hack for temporary work on single message delete/forward, and i add here solution for everyone

Thank you

@SD10 Any update on this ? Do you have any idea if someone started working on this ?
Appreciate

Any update on this? Does anybody have any solution?
How to build the interface like this?
IMG_7BA206152B94-1

Hey, Any update on the above feature. Please let me know how can we achieve this?

Hi @balajiechat

Yes, we can.
I have already implemented Edit feature using a custom Supplementary View, pretty simple actually.
Screen Shot 2020-08-18 at 9 35 34 AM

@lhr000lhrmega then why don't you help others and give the example code here.

@lhr000lhrmega then why don't you help others and give the example code here.

https://github.com/meganz/iOS/blob/master/iMEGA/Chat%20Messages/ChatViewMessagesFlowLayout.swift#L72

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asn111 picture asn111  路  3Comments

nitrag picture nitrag  路  3Comments

adri4silva picture adri4silva  路  4Comments

robertoferraz picture robertoferraz  路  3Comments

pawankmrai picture pawankmrai  路  3Comments