I have a view with tabs on the bottom, one of the views
has subviews
, to separate the logic visually, I put the tabs of the subview at the top of the view with the following code and it works perfectly:
self.tabbar.frame = CGRect( x: 0,
y: view.safeAreaInsets.top,
width: self.view.frame.size.width,
height: 50)
How do I do this in SwiftUI
?
Closure containing control flow statement cannot be used with function builder 'ViewBuilder'
β Golda