parley-messaging / ios-library

Parley iOS app library
MIT License
2 stars 2 forks source link

Extend gradient to make agent name and time visible #111

Open nlamah opened 1 month ago

nlamah commented 1 month ago

Describe the Bug The agent name and time on an image get a gradient layer, so that the text is visible nonetheless of the background. The bug is that the gradient is not extended when the font size is bigger, or that the agent name is longer. The time label is by default not extended under the label. See screenshot in the pull request

To Reproduce Make an agent post a white image, and make sure the text is styled is white

Expected behaviour The gradients layer is as big or bigger than the agent name label and time label

Screenshots Normal font, time label at the right bottom is not visible testWithWhiteImageResultForAgentWithoutTitleAndMessage 1 Extra large font size, time label at the right bottom is not visible testWithWhiteImageResultForAgentWithoutTitleAndMessage 2