【发布时间】:2019-11-25 01:20:43
【问题描述】:
如果我有这个代码:
import SwiftUI
struct Test: View {
var body: some View {
Text("Hello World!")
.font(.title)
.foregroundColor(.white)
.padding()
.background(Color.red)
}
}
我有这个结果:
如何从视图上部的代码“Hello World”精确定位,如下面的截图所示?
【问题讨论】:
标签: swiftui