Hello , I'm trying to build a custom border for a card view. Something like in the below screenshot. Tried drawWIthContent method but could get the desired result
c
Colton Idle
05/03/2023, 4:29 AM
This just looks like a normal border? What does your current impl look like?
d
Deepak Gahlot
05/03/2023, 4:37 AM
border with a checkmark
c
Colton Idle
05/03/2023, 4:38 AM
I would just add a border, then add a checkmark
t
Travis Griggs
05/03/2023, 6:20 AM
I would do
Card (with some content padding)
Box
Checkmark (top right)
Card (padded, and bordered)
I’m only saying the outer card because it looks like you’ve got rounded corners there on the white. If that’s just a screen shot artifact, just do the Box downwards
c
Colton Idle
05/03/2023, 3:27 PM
For the checkmark, I would just put it in the top right, and then use the offset modifier.