mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Display avatars full screen when tapping on them from the room or member detail screens
This commit is contained in:
committed by
Stefan Ceriu
parent
68f8bfed53
commit
3515494a10
@@ -23,15 +23,20 @@ struct AvatarHeaderView<Footer: View>: View {
|
||||
let avatarSize: AvatarSize
|
||||
let imageProvider: ImageProviderProtocol?
|
||||
let subtitle: String?
|
||||
var onAvatarTap: (() -> Void)?
|
||||
@ViewBuilder var footer: () -> Footer
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 8.0) {
|
||||
LoadableAvatarImage(url: avatarUrl,
|
||||
name: name,
|
||||
contentID: id,
|
||||
avatarSize: avatarSize,
|
||||
imageProvider: imageProvider)
|
||||
Button {
|
||||
onAvatarTap?()
|
||||
} label: {
|
||||
LoadableAvatarImage(url: avatarUrl,
|
||||
name: name,
|
||||
contentID: id,
|
||||
avatarSize: avatarSize,
|
||||
imageProvider: imageProvider)
|
||||
}
|
||||
|
||||
Text(name ?? id)
|
||||
.foregroundColor(.compound.textPrimary)
|
||||
|
||||
Reference in New Issue
Block a user