Skip to content

Commit

Permalink
Bold the text when the post author equals comment author
Browse files Browse the repository at this point in the history
  • Loading branch information
SirArkimedes committed Oct 19, 2019
1 parent 1a6be7b commit 4f01a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shared/Views/CommentsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct CommentView: View {

var authorText: some View {
if comment.author == postAuthor {
return Text(comment.author).foregroundColor(.accentColor)
return Text(comment.author).foregroundColor(.accentColor).bold()
} else {
return Text(comment.author)
}
Expand Down

0 comments on commit 4f01a1f

Please sign in to comment.