Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个简单的SwiftUI看法:
SwiftUI
VStack { Image("AnIcon") Text("AAA").font(.system(size: 100)) Image("AnIcon") }
上面和下面的间距Text不同。
Text
如果我用 替换这两个图像Text,则文本彼此直接相邻(例如,蓝线重叠)。
上下间距不同的原因是什么?
还有,为什么还有这么大的空间?我会假设ImageandText之间没有额外的间距,就像三个文本一样。
Image