Skip to content

Commit 937f7d2

Browse files
committed
chore: refine activity detail clipping
1 parent ec1a970 commit 937f7d2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Dayflow/Dayflow/Views/UI/MainView.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,22 @@ struct MainView: View {
218218
)
219219
.opacity(contentOpacity)
220220
}
221+
.clipShape(
222+
UnevenRoundedRectangle(
223+
cornerRadii: .init(
224+
topLeading: 0,
225+
bottomLeading: 0, bottomTrailing: 8, topTrailing: 8
226+
)
227+
)
228+
)
229+
.contentShape(
230+
UnevenRoundedRectangle(
231+
cornerRadii: .init(
232+
topLeading: 0,
233+
bottomLeading: 0, bottomTrailing: 8, topTrailing: 8
234+
)
235+
)
236+
)
221237
.frame(minWidth: 195, idealWidth: 285, maxWidth: 315, maxHeight: .infinity)
222238
}
223239
.frame(width: geo.size.width, height: geo.size.height, alignment: .topLeading)

0 commit comments

Comments
 (0)