File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Screens/Messages/DialogView Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ import UIKit.UIColor
44enum MessageType {
55 case incoming, sent
66
7- var color : UIColor { self == . incoming ? . systemGreen : . systemBlue }
7+ var color : UIColor { self == . incoming ? . systemGray : . systemBlue }
88}
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ struct ChatBubble_Previews: PreviewProvider {
143143 . opacity ( 0.75 )
144144 }
145145 . foregroundColor ( . white)
146- . background ( . blue )
146+ . background ( Color ( uiColor : MessageType . incoming . color ) )
147147 }
148148 ChatBubble ( . sent) {
149149 VStack ( alignment: . trailing, spacing: 8 ) {
@@ -156,7 +156,7 @@ struct ChatBubble_Previews: PreviewProvider {
156156 . opacity ( 0.75 )
157157 }
158158 . foregroundColor ( . white)
159- . background ( . green )
159+ . background ( Color ( uiColor : MessageType . sent . color ) )
160160 }
161161 }
162162 . textSelection ( . enabled)
You can’t perform that action at this time.
0 commit comments