mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 19:10:49 +02:00
Don't need to take modifiers as parameter to screenGroup. Fix example theming.
This commit is contained in:
+2
@@ -54,6 +54,7 @@ struct TemplateRoomChat: View {
|
||||
.padding()
|
||||
|
||||
}
|
||||
.background(theme.colors.background)
|
||||
.navigationTitle(viewModel.viewState.roomName ?? "Chat")
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
@@ -66,6 +67,7 @@ struct TemplateRoomChat: View {
|
||||
private var roomContent: some View {
|
||||
if case .notInitialized = viewModel.viewState.roomInitializationStatus {
|
||||
ProgressView()
|
||||
.progressViewStyle(CircularProgressViewStyle(tint: theme.colors.primaryContent))
|
||||
.accessibility(identifier: "loadingProgress")
|
||||
} else if case .failedToInitialize = viewModel.viewState.roomInitializationStatus {
|
||||
Text("Sorry, We failed to load the room.")
|
||||
|
||||
+2
-1
@@ -41,7 +41,8 @@ struct TemplateRoomChatBubbleMessage: View {
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct TemplateRoomChatBubbleMessage_Previews: PreviewProvider {
|
||||
static let message = TemplateRoomChatMessageTextContent(body: "Hello")
|
||||
static var previews: some View {
|
||||
EmptyView()
|
||||
TemplateRoomChatBubbleMessage(messageContent: message)
|
||||
}
|
||||
}
|
||||
|
||||
+7
-1
@@ -57,7 +57,13 @@ struct TemplateRoomChatBubbleView_Previews: PreviewProvider {
|
||||
static let bubble = TemplateRoomChatBubble(
|
||||
id: "111",
|
||||
sender: MockTemplateRoomChatService.mockMessages[0].sender,
|
||||
items: []
|
||||
items: [
|
||||
TemplateRoomChatBubbleItem(
|
||||
id: "222",
|
||||
timestamp: Date(),
|
||||
content: .message(.text(TemplateRoomChatMessageTextContent(body: "Hello")))
|
||||
)
|
||||
]
|
||||
)
|
||||
static var previews: some View {
|
||||
TemplateRoomChatBubbleView(bubble: bubble)
|
||||
|
||||
Reference in New Issue
Block a user