mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fixes #296 - Improved bubble timeline item corner radii
This commit is contained in:
committed by
Stefan Ceriu
parent
2bce779206
commit
ce6b0041d2
@@ -25,10 +25,6 @@ struct RoundedCornerShape: Shape {
|
||||
self.corners = corners
|
||||
}
|
||||
|
||||
init(radius: CGFloat, inGroupState: TimelineItemInGroupState) {
|
||||
self.init(radius: radius, corners: inGroupState.roundedCorners)
|
||||
}
|
||||
|
||||
func path(in rect: CGRect) -> Path {
|
||||
let path = UIBezierPath(roundedRect: rect,
|
||||
byRoundingCorners: corners,
|
||||
@@ -41,8 +37,4 @@ extension View {
|
||||
func cornerRadius(_ radius: CGFloat, corners: UIRectCorner) -> some View {
|
||||
clipShape(RoundedCornerShape(radius: radius, corners: corners))
|
||||
}
|
||||
|
||||
func cornerRadius(_ radius: CGFloat, inGroupState: TimelineItemInGroupState) -> some View {
|
||||
clipShape(RoundedCornerShape(radius: radius, inGroupState: inGroupState))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user