Introduces AvatarType to allow 3rd parties inject their own avatar. There are 3 levels to it:
Avatar is a UIImageView or a subclass of it. We apply its style normally unless they set skipStyling = true.
Avatar is a UIView that has a UIImageView in it. In this case we still take care of downloading and setting the image but we don't apply any style because it's unclear where exactly to apply the style, to the parent or to the UIImageView?. It's best to let this be determined by the 3rd party component.
Fully custom. Avatar is provided via "AvatarProviding" protocol.
Closes https://github.com/Automattic/Gravatar-SDK-iOS/issues/253
Description
Introduces
AvatarType
to allow 3rd parties inject their own avatar. There are 3 levels to it:UIImageView
or a subclass of it. We apply its style normally unless they setskipStyling = true
.UIView
that has aUIImageView
in it. In this case we still take care of downloading and setting the image but we don't apply any style because it's unclear where exactly to apply the style, to the parent or to theUIImageView
?. It's best to let this be determined by the 3rd party component.Testing Steps
CI green.