Hi Team,
I come from web development background and started learning swiftUI. I found swift UI styling a bit inconsistent between the elements. For example consider the below code, for VStack we're adding styles in the parenthesis. Whereas for the Text element we're adding the styles after the parenthesis. Any idea on why we have these inconsistencies?
VStack (alignment:.leading,spacing: 5 ){
Text("Kadari Arun Kumar") .font(.system(size: 32))
}
In HTML/react we have a consistent styling between the elements.
<div id="outer" style={{textAlign:'center'}}>
<h1> Outer element </h1>
<div id="inner" style={{textAlign:'left'}}>
<h3> Inner element </h3>
</div>
</div>
Thanks,
Arun