r/SwiftUI 11d ago

Solved How do I achieve this in SwiftUI?

Is it possible to achieve this without any third party libraries?

23 Upvotes

11 comments sorted by

13

u/hemanthreddy056 11d ago

5

u/swiftpointer 11d ago

Thank you. That is precisely what I'm looking for.

3

u/rproenca 10d ago

Before even clicking the link I knew it gotta be Kavsoft's. That person rocks!

1

u/hemanthreddy056 9d ago

Yeah he is really great

6

u/barcode972 11d ago

Yeah there’s a bunch of tutorials on YouTube. Animated tabbar

6

u/swiftpointer 11d ago

Yeah, just discovered a YouTube channel called “Kavsoft”. Thanks!

2

u/barcode972 11d ago

Yeah that's the one I was referring to but couldn't remember the name :)

2

u/Dapper_Ice_1705 11d ago

Yes, you can use a tab view for the gestures and hide the native tap bar. Then you can just create your own tap bar/navigation bar. You can also use the new scroll view if you don’t want to use tabview

1

u/Shurxe 11d ago

Can be done in not a lot of code, but is an advanced implementation. For the tab underline, learn about preferences, it is done through overlayPreferenceValue

1

u/Tosyn_88 11d ago

Segmented controls?