adjustment to status in footer
This commit is contained in:
@@ -34,6 +34,19 @@ struct CircleFooterView: View {
|
||||
.background(NirvanaColor.teal.opacity(0.1))
|
||||
.frame(width: 40, height: 40)
|
||||
.clipShape(Circle())
|
||||
.overlay(alignment: .topTrailing) {
|
||||
// user status
|
||||
switch self.selectedFriend!.userStatus {
|
||||
case .online:
|
||||
Circle()
|
||||
.frame(width: 10, height: 10)
|
||||
.foregroundColor(Color.green)
|
||||
case .offline:
|
||||
Circle()
|
||||
default:
|
||||
Circle()
|
||||
}
|
||||
}
|
||||
.padding(5)
|
||||
.contextMenu {
|
||||
Button(role: .destructive) {
|
||||
@@ -49,6 +62,7 @@ struct CircleFooterView: View {
|
||||
Label("Remove from Circle", systemImage: "person.crop.circle.fill.badge.minus")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ struct CircleNavigationView: View {
|
||||
Image((self.authSessionStore.user?.avatar)!)
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.background(self.innerCircleVM.isRecording ? Color.orange : NirvanaColor.teal.opacity(0.5))
|
||||
.background(self.innerCircleVM.isRecording ? Color.orange : Color.teal.opacity(0.5))
|
||||
.frame(width: 40, height: 40)
|
||||
.clipShape(Circle())
|
||||
.shadow(radius: 10)
|
||||
|
||||
Reference in New Issue
Block a user