Answers for "swiftui margin"

5

center text swiftui

.multilineTextAlignment(.center)
Posted by: Guest on March-15-2020
2

swiftui padding one line

Text("Hello, World!").padding(EdgeInsets(top: 500, leading: 0, bottom: 0, trailing: 0))
Posted by: Guest on November-15-2020
2

SwiftUI padding

Text("Example")

	// overall padding
    .padding(20)

	// left padding
	.padding(.leading, 20)

	// right padding
	.padding(.trailing, 20)
    
    // top padding
    .padding(.top, 20)
    
    // bottom padding
    .padding(.bottom, 20)
Posted by: Guest on April-13-2020
1

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")
                })
            }
Posted by: Guest on March-13-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language