Skip to content

Commit

Permalink
show serverRegion
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Mar 22, 2022
1 parent e4aad19 commit f7310dd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Shared/RoomView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ struct RoomView: View {
VStack {

if showConnectionTime {
Text("Connected (\(String(describing: room.room.connectStopwatch.total().rounded(to: 2)))s)")
Text("Connected (\([room.room.serverRegion, "\(String(describing: room.room.connectStopwatch.total().rounded(to: 2)))s"].compactMap { $0 }.joined(separator: ", ")))")
.multilineTextAlignment(.center)
.foregroundColor(.white)
.padding()
Expand Down Expand Up @@ -297,13 +297,13 @@ struct RoomView: View {
.disabled(room.microphoneTrackState.isBusy)

#if os(iOS)
Button(action: {
room.toggleScreenShareEnabled(screenShareSource: nil)
},
label: {
Image(systemSymbol: .rectangleFillOnRectangleFill)
.renderingMode(room.screenShareTrackState.isPublished ? .original : .template)
})
// Button(action: {
// room.toggleScreenShareEnabled(screenShareSource: nil)
// },
// label: {
// Image(systemSymbol: .rectangleFillOnRectangleFill)
// .renderingMode(room.screenShareTrackState.isPublished ? .original : .template)
// })
#elseif os(macOS)
Button(action: {
if room.screenShareTrackState.isPublished {
Expand Down

0 comments on commit f7310dd

Please sign in to comment.