Skip to content

Commit 09177d7

Browse files
Replace avatar in compose view with the new AvatarView
For consistency and the ability to remove FLAnimatedImage.
1 parent a252ebd commit 09177d7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/View/ComposeContentView.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,7 @@ public struct ComposeContentView: View {
236236
extension ComposeContentView {
237237
var authorView: some View {
238238
HStack(alignment: .top, spacing: 8) {
239-
AnimatedImage(imageURL: viewModel.avatarURL)
240-
.frame(width: 46, height: 46)
241-
.background(Color(UIColor.systemFill))
242-
.cornerRadius(12)
239+
AvatarView(size: .large, avatarSource: .url(viewModel.avatarURL), goToProfile: nil)
243240
VStack(alignment: .leading, spacing: 0) {
244241
MetaLabelRepresentable(
245242
textStyle: .statusName,

0 commit comments

Comments
 (0)