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

Add SwiftUI CachedAsyncImage and AvatarView #310

Closed pinarol closed 2 months ago

pinarol commented 2 months ago

Closes #

Description

Adds 2 SwiftUI components

CachedAsyncImage, mimics AsyncImage API but also adds caching capabilities by using our ImageDownloadService under the hood.

AvatarView uses CachedAsyncImage and renders the given AvatarURL.

I am keeping these internal for now since they might be prone to change.

Testing Steps

Gravatar-SwiftUI-Demo app > Avatar View