diff --git a/Sources/SpeziChat/ChatView.swift b/Sources/SpeziChat/ChatView.swift index d5d3b27..cd7b062 100644 --- a/Sources/SpeziChat/ChatView.swift +++ b/Sources/SpeziChat/ChatView.swift @@ -55,7 +55,6 @@ import SwiftUI /// ``` public struct ChatView: View { @Binding var chat: Chat - // @Binding var displayTypingIndicator: Bool var disableInput: Bool let exportFormat: ChatExportFormat? let messagePlaceholder: String? @@ -134,8 +133,6 @@ public struct ChatView: View { self.disableInput = disableInput self.exportFormat = exportFormat self.messagePlaceholder = messagePlaceholder - self.showShareSheet = false - self.messageInputHeight = 0.0 } } diff --git a/Sources/SpeziChat/MessageView.swift b/Sources/SpeziChat/MessageView.swift index d90e793..cc17c16 100644 --- a/Sources/SpeziChat/MessageView.swift +++ b/Sources/SpeziChat/MessageView.swift @@ -40,6 +40,7 @@ public struct MessageView: View { private let chat: ChatEntity private let hideMessagesWithRoles: Set + public var body: some View { // Compare raw value of `ChatEntity/Role`s as associated values present if !hideMessagesWithRoles.contains(where: { $0.rawValue == chat.role.rawValue }) { @@ -66,6 +67,7 @@ public struct MessageView: View { } } + #Preview { ScrollView { VStack {