Вот мой код:
Код: Выделить всё
VStack(spacing: DSConstants.Spacing.spacing16) {
Text("Axis: Horizontal")
TextField("", text: $text, axis: .horizontal)
.font(.custom("RakutenSansJP-Regular", size: 14))
.frame(minHeight: 44)
.focused($editing)
.padding(.horizontal, 16)
.padding(.vertical, 4)
.background(
RoundedRectangle(cornerRadius: 16)
.fill(Color.white)
)
.overlay(
RoundedRectangle(cornerRadius: 16)
.stroke(editing ? Color.blue : Color.gray, lineWidth: 1)
)
.focused($editing)
Text("Axis: Vertical")
TextField("", text: $text, axis: .vertical)
.font(.custom("RakutenSansJP-Regular", size: 14))
.frame(minHeight: 44)
.focused($editing)
.padding(.horizontal, 16)
.padding(.vertical, 4)
.background(
RoundedRectangle(cornerRadius: 16)
.fill(Color.white)
)
.overlay(
RoundedRectangle(cornerRadius: 16)
.stroke(editing ? Color.blue : Color.gray, lineWidth: 1)
)
.focused($editing)
}
Снимок экрана 1
Снимок экрана 2
Снимок экрана 3
Снимок экрана 4
Кто-нибудь еще сталкивался с этой проблемой или имеет какие-либо предложения по ее решению?
Подробнее здесь: https://stackoverflow.com/questions/790 ... ont-in-swi