Skip to content

Commit

Permalink
Removing Avatar activity clip and ShapeCutout (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischreiber authored Feb 7, 2025
1 parent 8f6a3c0 commit 41127a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
9 changes: 0 additions & 9 deletions Sources/FluentUI_iOS/Components/Avatar/Avatar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -326,15 +326,6 @@ public struct Avatar: View, TokenizedControlView, Equatable {
let activityBackgroundFrameSideRelativeToOuterRing: CGFloat = layoutDirection == .rightToLeft ? activityBackgroundFrameRTL : activityBackgroundFrameLTR

avatarBody
// Creates the cutout shape
.modifyIf((shouldDisplayActivity || shouldDisplayPresence), { thisView in
thisView
.clipShape(ShapeCutout(xOrigin: accessoryCutoutCoordinates.x,
yOrigin: accessoryCutoutCoordinates.y,
cornerRadius: cornerRadius,
cutoutSize: accessoryBorderSize),
style: FillStyle(eoFill: true))
})
// Creates the activity outer border overlay
.modifyIf(shouldDisplayActivity, { thisView in
thisView
Expand Down
41 changes: 0 additions & 41 deletions Sources/FluentUI_iOS/Components/Avatar/ShapeCutout.swift

This file was deleted.

0 comments on commit 41127a9

Please sign in to comment.