hstack spacing swiftui code example
Example 1: swift uitableview cell spacing
// Inside UITableViewCell subclass
override func layoutSubviews() {
super.layoutSubviews()
contentView.frame = contentView.frame.inset(by: UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8))
}
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")
})
}