|
|
@ -16,6 +16,7 @@ struct MessageInfoView: View {
|
|
|
|
Color.black
|
|
|
|
Color.black
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ScrollView(.vertical, showsIndicators: false) {
|
|
|
|
VStack(
|
|
|
|
VStack(
|
|
|
|
alignment: .leading,
|
|
|
|
alignment: .leading,
|
|
|
|
spacing: 10
|
|
|
|
spacing: 10
|
|
|
@ -44,14 +45,29 @@ struct MessageInfoView: View {
|
|
|
|
.fixedSize(horizontal: true, vertical: true)
|
|
|
|
.fixedSize(horizontal: true, vertical: true)
|
|
|
|
.padding(
|
|
|
|
.padding(
|
|
|
|
EdgeInsets(
|
|
|
|
EdgeInsets(
|
|
|
|
top: 10,
|
|
|
|
top: 8,
|
|
|
|
leading: 30,
|
|
|
|
leading: 30,
|
|
|
|
bottom: 10,
|
|
|
|
bottom: 4,
|
|
|
|
trailing: 30
|
|
|
|
trailing: 30
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: Attachment carousel view
|
|
|
|
// 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
|
|
|
|
// Attachment Info
|
|
|
|
if (messageViewModel.attachments?.isEmpty != false) {
|
|
|
|
if (messageViewModel.attachments?.isEmpty != false) {
|
|
|
@ -164,9 +180,9 @@ struct MessageInfoView: View {
|
|
|
|
.fixedSize(horizontal: false, vertical: true)
|
|
|
|
.fixedSize(horizontal: false, vertical: true)
|
|
|
|
.padding(
|
|
|
|
.padding(
|
|
|
|
EdgeInsets(
|
|
|
|
EdgeInsets(
|
|
|
|
top: 10,
|
|
|
|
top: 4,
|
|
|
|
leading: 30,
|
|
|
|
leading: 30,
|
|
|
|
bottom: 10,
|
|
|
|
bottom: 4,
|
|
|
|
trailing: 30
|
|
|
|
trailing: 30
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -225,7 +241,7 @@ struct MessageInfoView: View {
|
|
|
|
alignment: .topLeading
|
|
|
|
alignment: .topLeading
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.foregroundColor(Color(red: 49.0/255, green: 241.0/255, blue: 150.0/255))
|
|
|
|
.foregroundColor(Color(red: 49.0/255, green: 241.0/255, blue: 150.0/255))
|
|
|
|
// ProfilePictureSwiftUI(size: .message)
|
|
|
|
// ProfilePictureSwiftUI(size: .message)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VStack(
|
|
|
|
VStack(
|
|
|
@ -261,9 +277,9 @@ struct MessageInfoView: View {
|
|
|
|
.fixedSize(horizontal: false, vertical: true)
|
|
|
|
.fixedSize(horizontal: false, vertical: true)
|
|
|
|
.padding(
|
|
|
|
.padding(
|
|
|
|
EdgeInsets(
|
|
|
|
EdgeInsets(
|
|
|
|
top: 10,
|
|
|
|
top: 4,
|
|
|
|
leading: 30,
|
|
|
|
leading: 30,
|
|
|
|
bottom: 10,
|
|
|
|
bottom: 4,
|
|
|
|
trailing: 30
|
|
|
|
trailing: 30
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -286,6 +302,7 @@ struct MessageInfoView: View {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
struct MessageInfoView_Previews: PreviewProvider {
|
|
|
|
struct MessageInfoView_Previews: PreviewProvider {
|
|
|
|