|
|
|
@ -16,6 +16,7 @@ struct MessageInfoView: View {
|
|
|
|
|
Color.black
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ScrollView(.vertical, showsIndicators: false) {
|
|
|
|
|
VStack(
|
|
|
|
|
alignment: .leading,
|
|
|
|
|
spacing: 10
|
|
|
|
@ -44,14 +45,29 @@ struct MessageInfoView: View {
|
|
|
|
|
.fixedSize(horizontal: true, vertical: true)
|
|
|
|
|
.padding(
|
|
|
|
|
EdgeInsets(
|
|
|
|
|
top: 10,
|
|
|
|
|
top: 8,
|
|
|
|
|
leading: 30,
|
|
|
|
|
bottom: 10,
|
|
|
|
|
bottom: 4,
|
|
|
|
|
trailing: 30
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO: Attachment carousel view
|
|
|
|
|
SessionCarouselView_SwiftUI(colors: [.orange, .gray, .blue, .yellow])
|
|
|
|
|
.frame(
|
|
|
|
|
maxWidth: .infinity,
|
|
|
|
|
maxHeight: .infinity,
|
|
|
|
|
alignment: .topLeading
|
|
|
|
|
)
|
|
|
|
|
.padding(
|
|
|
|
|
EdgeInsets(
|
|
|
|
|
top: 4,
|
|
|
|
|
leading: 0,
|
|
|
|
|
bottom: 4,
|
|
|
|
|
trailing: 0
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Attachment Info
|
|
|
|
|
if (messageViewModel.attachments?.isEmpty != false) {
|
|
|
|
@ -164,9 +180,9 @@ struct MessageInfoView: View {
|
|
|
|
|
.fixedSize(horizontal: false, vertical: true)
|
|
|
|
|
.padding(
|
|
|
|
|
EdgeInsets(
|
|
|
|
|
top: 10,
|
|
|
|
|
top: 4,
|
|
|
|
|
leading: 30,
|
|
|
|
|
bottom: 10,
|
|
|
|
|
bottom: 4,
|
|
|
|
|
trailing: 30
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
@ -261,9 +277,9 @@ struct MessageInfoView: View {
|
|
|
|
|
.fixedSize(horizontal: false, vertical: true)
|
|
|
|
|
.padding(
|
|
|
|
|
EdgeInsets(
|
|
|
|
|
top: 10,
|
|
|
|
|
top: 4,
|
|
|
|
|
leading: 30,
|
|
|
|
|
bottom: 10,
|
|
|
|
|
bottom: 4,
|
|
|
|
|
trailing: 30
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
@ -287,6 +303,7 @@ struct MessageInfoView: View {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct MessageInfoView_Previews: PreviewProvider {
|
|
|
|
|
static var previews: some View {
|
|
|
|
|