instamobile / messenger-iOS-chat-swift-firestore

Messenger Clone - Real-time iOS Chat with Firebase Firestore written in Swift
https://www.iosapptemplates.com
MIT License
756 stars 128 forks source link

I want to display text messages in different ways (e.g.. all CAPS), but what variable is the text stored?? #22

Open eric-solberg opened 3 years ago

eric-solberg commented 3 years ago

I want to allow the user to display incoming messages in different ways (for example, a user might want to show all incoming chat messages in all CAPS). But I'm confused... in what variable is the text stored?

I'm looking in the ATCChatMessage.swift file, and I see three variables which seem to store the message's text: (1) content: String, (2) messageText: String, and (3) kind: MessageKind (which I realize is a MessageKit Type). I don't really see a difference between "content" and "messageText". I guess, to simplify my question, where in the swift code is the chat message text displayed, and from what variable is it fetching from? That way I know which variable I can edit if I want the user to make different adjustments on the text based on predefined settings.

Any help from someone would be greatly appreciated!