SwiftyChat icon indicating copy to clipboard operation
SwiftyChat copied to clipboard

How do you extend Message Kinds?

Open nikans opened this issue 2 years ago • 2 comments

Hello. Since ChatMessageKind is a enum, and does not contain any .custom option either, how do you suppose to add new messages kinds?

nikans avatar Apr 12 '22 11:04 nikans

Hi @nikans , yes in current implementation we don't have custom message support but it'd be possible if we add new message kind .custom(Any) and we can add custom message method maybe on ChatView to bring UI & Logic together , so any contribution would be good 😊 , I added custom message support in my Flutter version of this chat package but could not save time to impl. in SwiftUI

EnesKaraosman avatar Apr 12 '22 11:04 EnesKaraosman

Thanks, I'll keep in mind.

nikans avatar Apr 13 '22 09:04 nikans

@LeonardMaetzner 's MR is merged and we've released version 2.3.0 . You can keep enjoying!! @nikans .

Thanks for your feedbacks and contributions.

EnesKaraosman avatar Jan 29 '23 12:01 EnesKaraosman