Skip to content

Instantly share code, notes, and snippets.

@apatronl
Created April 9, 2024 22:14
Show Gist options
  • Save apatronl/8c3b061ece6a1b09a133ab8c25dfd077 to your computer and use it in GitHub Desktop.
Save apatronl/8c3b061ece6a1b09a133ab8c25dfd077 to your computer and use it in GitHub Desktop.
struct MessageCell: View {
let message: Message
var body: some View {
HStack {
if message.role == .sender { Spacer() }
MessageBubble(message: message)
if message.role == .receiver { Spacer() }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment