Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
36 stars 1 forks source link

Etoledom/claim profile image multicolor #289

Closed etoledom closed 2 months ago

etoledom commented 3 months ago

Closes #288

Description

This PR allows the Claim Profile image placeholder to be painted with different colors:

To achieve this, the colors on Palette.AvatarColors are used.

For the image view background color when no image is set (in placeholder state), the Palette.PlaceholderColors color is used.

In this way, arbitrary color convinations can be achieved:

image

Testing Steps

etoledom commented 2 months ago

Replaced by https://github.com/Automattic/Gravatar-SDK-iOS/pull/292