Closed Eric1143 closed 1 year ago
Suggest changing the code in AvatarModifier to...
public func body(content: Content) -> some View { HStack(alignment: avatarAlignment, spacing: avatarSpacing) { if !isSender { avatar.zIndex(2) } content if isSender { avatar.zIndex(2) } } }
private var avatarAlignment: VerticalAlignment { switch currentAvatarPosition { case .alignToMessageTop: return .top case .alignToMessageCenter: return .center case .alignToMessageBottom: return .bottom } }
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Suggest changing the code in AvatarModifier to...
public func body(content: Content) -> some View { HStack(alignment: avatarAlignment, spacing: avatarSpacing) { if !isSender { avatar.zIndex(2) } content if isSender { avatar.zIndex(2) } } }
private var avatarAlignment: VerticalAlignment { switch currentAvatarPosition { case .alignToMessageTop: return .top case .alignToMessageCenter: return .center case .alignToMessageBottom: return .bottom } }