Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initially tried working with the MessageKit framework but I couldn't … #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tcote19
Copy link
Collaborator

@tcote19 tcote19 commented Apr 12, 2021

Initially tried working with the MessageKit framework but I couldn't quite understand it. Borrowed some code from Kavsoft for adding a dynamically resizing message view.

…quite understand it. Borrowed some code from Kavsoft for adding a dynamically resizing message view.
@tcote19 tcote19 requested a review from jeksys April 12, 2021 22:26
Copy link
Owner

@jeksys jeksys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it makes sense to finish chat view and link it a data source before merging to master?

UIResponder.keyboardDidShowNotification, object: nil, queue: .main) {
(data) in

let height1 = data.userInfo![UIResponder.keyboardFrameEndUserInfoKey]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[critical] forced unwrapping is not good, can cause a crash

struct ChatView_Previews: PreviewProvider {
static var previews: some View {
ChatView()
}
}


struct chatInstance : View {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] let's follow Swift standards and name structs with the capital letter

@@ -479,6 +491,11 @@
package = 0DEE520725D0BA71003C6EB7 /* XCRemoteSwiftPackageReference "swift-protobuf" */;
productName = SwiftProtobuf;
};
8A713CCF2623EAD300F6D4BB /* MessageKit */ = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If MessageKit is not used can you please remove it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the proper way to do this?

@tcote19
Copy link
Collaborator Author

tcote19 commented Apr 13, 2021

Yeah, can do. I definitely need to get a better understanding on how the messages interface with the devices.

zls1988 pushed a commit to zls1988/Meshtastic-iOS that referenced this pull request Aug 1, 2021
zls1988 pushed a commit to zls1988/Meshtastic-iOS that referenced this pull request Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants