If you are implementing custom tab and toolbar, keep in mind that the position of the bar can change depending on certain system heuristics.
For the tab bar in particular, it will expand to display labels during a long press, and the system also displays the Large Content Viewer with the symbol and label when the user has set their text size to use accessibility sizes, starting with Accessibility Medium.
People using iOS are accustomed to these default behaviors on tab bars and toolbars, which make apps more accessible. As you implement your custom bars, please do not forget to introduce these behaviors as well. To learn more, watch the WWDC19 video Large Content Viewer - Ensuring Readability for Everyone.
The edge of the vertical bar can be read from the environment's toolbarVerticalEdge in SwiftUI, and verticalBarEdge in the trait collection in UIKit.