var body: some View {
VStack {
UserAvatar(imageURL: participant.profileImageURL, size: 40)
SomeOtherView()
}
}
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:
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
.
- I'm working with the Stream Video IOS SDK and would like to ask questions about this documentation page: https://getstream.io/video/docs/ios/ui-components/utility/avatars.md
- View as markdown
- Open in ChatGPT
- Open in Claude