I'm trying to replicate the animated tab view bar at https://github.com/Ramotion/animated-tab-bar without storyboards for practice with Swift UI:
I was looking through StackOverflow for solutions to recreate this pragmatically and was discouraged by the complex to the point it seemed to take a very long time (even without animation) to compile with Xcode becoming unresponsive at times (maybe I don't understand or was doing something wrong?).
From answer 3 (Programmatically detect Tab Bar or TabView height in SwiftUI): "static var defaultValue: [CGRect] = [] // static func reduce(value: inout [CGRect], nextValue: () -> [CGRect]) {"
Basically two questions:
- Is it even possible to make this completely in code with TabView in Swift UI: https://github.com/Ramotion/animated-tab-bar?
- Is Programmatic approach "better" than storyboards to make this tab view?