Why SwiftUI Image add an extra padding to enclosing VStack

Why SwiftUI Image add an extra padding to enclosing VStack

4.6
(206)
Write Review
More
$ 23.99
Add to Cart
In stock
Description

I'm struggling with a very simple problem. If I put a Text into a VStack, there is no padding on the top. If I now put an Image, I have a padding. See the following screenshot: The corresponding c

swiftui - Unexpected empty space before and after ScrollView - Stack Overflow

swift - UIGraphicsImageRenderer generates a strange top padding on iOS 15, working fine on iOS 14.x - Stack Overflow

Making SwiftUI Previews Work For You

The SwiftUI Layout Protocol - Part 1 - The SwiftUI Lab

SwiftUI Cookbook, Chapter 8: Adapt SwiftUI Layouts for Various Screen Sizes

swiftui - Unintentional padding for some items in VStack - Stack Overflow

ios - SwiftUI Content View random padding - Stack Overflow

Extra Space in List (left and right side) SwiftUI - Stack Overflow

SwiftUI Cookbook, Chapter 8: Adapt SwiftUI Layouts for Various Screen Sizes