mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Add a rounded rect border around space avatars
.. and also refactor the LoadableAvatarImage to stop having knowledge of spaces and instead focus on generic shapes.
This commit is contained in:
committed by
Stefan Ceriu
parent
20a84dd896
commit
591ce3975b
@@ -14,7 +14,7 @@ struct OverridableAvatarImage: View {
|
||||
let url: URL?
|
||||
let name: String?
|
||||
let contentID: String
|
||||
let isSpace: Bool
|
||||
let shape: LoadableAvatarImage.Shape
|
||||
let avatarSize: Avatars.Size
|
||||
let mediaProvider: MediaProviderProtocol?
|
||||
|
||||
@@ -28,12 +28,12 @@ struct OverridableAvatarImage: View {
|
||||
ProgressView()
|
||||
}
|
||||
.scaledFrame(size: avatarSize.value)
|
||||
.clipAvatar(isSpace: isSpace, size: avatarSize.value)
|
||||
.avatarShape(shape, size: avatarSize.value)
|
||||
} else {
|
||||
LoadableAvatarImage(url: url,
|
||||
name: name,
|
||||
contentID: contentID,
|
||||
isSpace: isSpace,
|
||||
shape: shape,
|
||||
avatarSize: avatarSize,
|
||||
mediaProvider: mediaProvider)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user