User Avatar

The user avatar is available as a standalone component, that you can use in your custom UI. The SwiftUI view is called UserAvatar and it’s created with the image URL and the size.

Here’s an example usage:

var body: some View {
    VStack {
        UserAvatar(imageURL: participant.profileImageURL, size: 40)
        SomeOtherView()
    }
}

The view has a circled shape. If that does not fit your UI requirements, you can easily build your own view, by using the native StreamLazyImage.

© Getstream.io, Inc. All Rights Reserved.