|
|
|
@ -13,6 +13,7 @@ struct MessageInfoView: View {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var body: some View {
|
|
|
|
|
NavigationView {
|
|
|
|
|
ZStack (alignment: .topLeading) {
|
|
|
|
|
if #available(iOS 14.0, *) {
|
|
|
|
|
Color.black.ignoresSafeArea()
|
|
|
|
@ -97,6 +98,7 @@ struct MessageInfoView: View {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if let attachments = messageViewModel.attachments {
|
|
|
|
|
ZStack(alignment: .bottomTrailing) {
|
|
|
|
|
if attachments.count > 1 {
|
|
|
|
|
// Attachment carousel view
|
|
|
|
|
SessionCarouselView_SwiftUI(index: $index, contentInfos: [.orange, .gray, .blue, .yellow])
|
|
|
|
@ -105,6 +107,31 @@ struct MessageInfoView: View {
|
|
|
|
|
maxHeight: .infinity,
|
|
|
|
|
alignment: .topLeading
|
|
|
|
|
)
|
|
|
|
|
} else {
|
|
|
|
|
// TODO: one attachment
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Button {
|
|
|
|
|
// TODO: full screen function
|
|
|
|
|
} label: {
|
|
|
|
|
ZStack {
|
|
|
|
|
Circle()
|
|
|
|
|
.foregroundColor(.init(white: 0, opacity: 0.4))
|
|
|
|
|
Image(systemName: "arrow.up.left.and.arrow.down.right")
|
|
|
|
|
.font(.system(size: 13))
|
|
|
|
|
.foregroundColor(.white)
|
|
|
|
|
}
|
|
|
|
|
.frame(width: 26, height: 26)
|
|
|
|
|
}
|
|
|
|
|
.padding(
|
|
|
|
|
EdgeInsets(
|
|
|
|
|
top: 0,
|
|
|
|
|
leading: 0,
|
|
|
|
|
bottom: 8,
|
|
|
|
|
trailing: 38
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
.padding(
|
|
|
|
|
EdgeInsets(
|
|
|
|
|
top: 4,
|
|
|
|
@ -113,9 +140,6 @@ struct MessageInfoView: View {
|
|
|
|
|
trailing: 0
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
} else {
|
|
|
|
|
// TODO: one attachment
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Attachment Info
|
|
|
|
|
ZStack {
|
|
|
|
@ -349,6 +373,11 @@ struct MessageInfoView: View {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.navigationBarTitle(
|
|
|
|
|
"Message Info",
|
|
|
|
|
displayMode: .inline
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|