Hello all I want to make a bend in the middle of the tab bar just like in this image
Asked
Active
Viewed 616 times
-2
-
You might want to learn about `UIBezierPath`, but you need to learn how to draw it yourself. – Larme Jul 04 '20 at 15:17
-
Ok I will check about that thanks @Larme – Mustafa GT Jul 04 '20 at 15:18
-
as @Larme said you can use `UIBezierPath` and `CAShapeLayer`... try from your end. if you can't then let us know will help – Saifan Nadaf Jul 04 '20 at 15:38
-
@m.n Did you find solution? – Rajan Singh Jul 17 '20 at 04:47
-
@RajanSingh I used UIBezierPath it was hard to learn but it made me close to what I need check this link it really helped me https://www.appcoda.com/bezier-paths-introduction/ – Mustafa GT Jul 22 '20 at 03:09
-
@m.n can you help? can you share your tab bar code it will be very helpful and also save my time. – Rajan Singh Jul 23 '20 at 17:31
-
@RajanSingh https://pastebin.com/k1feLNaP – Mustafa GT Jul 26 '20 at 02:23
-
@m.n thank you for your help let me check and update you – Rajan Singh Jul 28 '20 at 06:39
1 Answers
0
You can use SwiftUI
to custom-build a curved tab bar.
Here is a YouTube link with sample code on how to do it.
If you would like to use UIKit
, here is a link with sample code on how to do it.
Hope this helps!

Gavin Wong
- 1,254
- 1
- 6
- 15
-
Can I put SwiftUI code inside UIKit code? I know that I can use UIKit in SwiftUI but not the other way. – Mustafa GT Jul 04 '20 at 15:26
-
@m.n They should work together, but in case they don't, I have added a new link to my answer! Hope it helps! – Gavin Wong Jul 04 '20 at 15:30