hstack alignment swiftui code example
Example 1: center text swiftui
.multilineTextAlignment(.center)
Example 2: remove padding hstack swiftui
VStack(alignment: .leading) {
Text("How to enjoy your life without money").bold().font(.system(size: 20))
HStack (alignment: .center, spacing: 0, content: {
Text("Lets create")
Text("3K views")
Text("3 hours ago")
})
}