Skip to content

Commit

Permalink
conversationViewにてrowViewの表示を改善
Browse files Browse the repository at this point in the history
  • Loading branch information
boardguy1024 committed Oct 23, 2023
1 parent b290fd5 commit 0efbbc7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Binary file not shown.
18 changes: 15 additions & 3 deletions TwitterSwiftUI/Core/TabBar/Conversations/ConversationRowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,24 @@ struct ConversationRowView: View {
.clipShape(Circle())

VStack(alignment: .leading) {
HStack {
Text(message.user.username)
.font(.subheadline).bold()
.foregroundStyle(.black)

Text("@\(message.user.email.emailUsername ?? "")")
.font(.subheadline)
.foregroundColor(.gray)

Text("\(message.timestamp.timeStringJP())")
.font(.subheadline)
.foregroundColor(.gray)
}
Text(message.text)
.font(.subheadline).bold()
.foregroundStyle(.black)
Text("@\(message.user.email.emailUsername ?? "")")
.font(.subheadline)
.foregroundColor(.gray)
.multilineTextAlignment(.leading)
.lineLimit(2)
}
Spacer()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ struct ConversationsView: View {
, alignment: .top)
}
.background(Color.red)

}

}

extension ConversationsView {
Expand Down

0 comments on commit 0efbbc7

Please sign in to comment.