Skip to content

Commit dc0cef1

Browse files
Changed topBar to navigationBar for toolbars
1 parent 1380084 commit dc0cef1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAllOptionsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct PollAllOptionsView: View {
4848
.bold()
4949
}
5050

51-
ToolbarItem(placement: .topBarLeading) {
51+
ToolbarItem(placement: .navigationBarLeading) {
5252
Button {
5353
presentationMode.wrappedValue.dismiss()
5454
} label: {

Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollCommentsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct PollCommentsView: View {
7474
.bold()
7575
}
7676

77-
ToolbarItem(placement: .topBarLeading) {
77+
ToolbarItem(placement: .navigationBarLeading) {
7878
Button {
7979
presentationMode.wrappedValue.dismiss()
8080
} label: {

Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollResultsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct PollResultsView: View {
6060
.bold()
6161
}
6262

63-
ToolbarItem(placement: .topBarLeading) {
63+
ToolbarItem(placement: .navigationBarLeading) {
6464
Button {
6565
presentationMode.wrappedValue.dismiss()
6666
} label: {

Sources/StreamChatSwiftUI/ChatChannel/Polls/CreatePollView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ struct CreatePollView: View {
182182
.bold()
183183
}
184184

185-
ToolbarItem(placement: .topBarTrailing) {
185+
ToolbarItem(placement: .navigationBarTrailing) {
186186
Button {
187187
viewModel.createPoll {
188188
presentationMode.wrappedValue.dismiss()

0 commit comments

Comments
 (0)